last day (14 days later) » 

10:24 AM
Hi!
 
Hi
try <%= link_to(root_path) do %>
it will work..
you were passing a string.. instead of the method root_path method.
 
Thanks! Yes it does. But according to the guide I should be able to refer directly to the profile view within the pages controller. When I later change the routes (having /profile instead of pages/profile) I guess I have to change that in the nav too.
 
humm.
 
I guess thats why the guide suggests @profile
 
Hey.. I am looking for a part time RoR job. Any thing you have to share ?
 
10:29 AM
but what does @profile means? Does it refer to the controller or the view?
No, sorry. Where are you located?
 
India
 
I see. I'm in Sweden!
 
@profile is an object. if you mention it like link_to @profile it will take you the show path of the particular profile
ok.
 
I see. My view within the pages controller is called profile. The guide suggests with an example: <%= link_to(@profile) do %>
<strong><%= @profile.name %></strong> -- <span>Check it out!</span>
<% end %>
anyways, thanks alot for your time and suggestion!
 

last day (14 days later) »