You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
When a rails 4 application is hosted on a subdomain e.g. sub.domain.com, how can you get urls in Action Mailer templates to link to the subdomain correctly? config/environments/production.rb: config.action_mailer.default_url_options = { :host => 'sub.domain.com' } action mailer template link example: <%= user_url(@user) %> In the email, the link shows as www.domain.com/users/1 rather then sub.doma
ä»ã¾ã§ã¡ã¼ã«(ActionMailer)ã®ãã¹ãã¯ã©ãã«ãé¢åã§ãèªåã§ãã©ã¦ã¶ããåããã¦ãã°ãè¦ã¦ã£ã¦ãã£ã¦ãããã§ãããCucumberã§ã¡ã¼ã«ã®ãã¹ããã§ããã£ã½ãã®ã§è©¦ãã¦ã¿ã¾ããã 確èªç°å¢ã¯Rails2.3.2ãCucumber0.2.3ãemail_spec0.0.10ã email_specã¯githubãsourceã«æå®ãã¦ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ãã¾ã(bmabeyâs email-spec at master - GitHub)ãconfig/environments/test.rbãããã«æ¸ãã¦ããã¨ããã¨æãã¾ãã email_specãã¤ã³ã¹ãã¼ã«ããã¨generateã«ã³ãã³ãã追å ããã¦ãã¾ãã $ ruby script/generate email_spec ããã§çæãããfeatures/stepdefinitions/emailsteps.rb
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}