You're not stuffed.
Right now you're generating the <a> tag manually with the path "/events"
If you switch to Rails helpers to generate the URL, your problems can be
solved. Which helpers you use depends on how your routes are set up.
How do you have your routes set up? Do you have something like this?
resources :events
If so, you can replace your %a link with this:
link_to('Events', events_url(:protocol => 'http'))
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/89ee512e-541f-4666-a063-98a4a8eb7947%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.