RailsCasts Pro episodes are now free!

Learn more or hide this

jwmii2's Profile

GitHub User: jwmii2

Comments by

Avatar

Processing by PagesController#show as
Parameters: {"id"=>"favicon"}
Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."permalink" = 'favicon' LIMIT 1

Can someone tell me why the get ':id', to: 'pages#show', as: :page route in my route.rb file is passing favicon as an id parameter?

Avatar
ruby
<title><%= content_for?(:title) ? yield(:title) + " - Company" : "Company" %></title>

This works well if you want to add the company name at the end of the title string instead of in the beginning like the video shows.

Avatar

Just a small note in case others had the same issue i did:

This:
# specify what domain to use for mailer URLs
config.action_mailer.default_url_options - { host: "localhost:3000" }

Should actually be:
# specify what domain to use for mailer URLs
config.action_mailer.default_url_options = { host: "localhost:3000" }

Once i changed the - to an =, it worked fine. Thanks again for a great railscast and gem!