Hi there…
A newbie question…
The link below links to the users-page…that works fine…
But i don’t want the link ‘Mylink’ but the username instead of. The
username is stored in logged_in_user.username
How can i realize…this…
swoany
Hi there…
A newbie question…
The link below links to the users-page…that works fine…
But i don’t want the link ‘Mylink’ but the username instead of. The
username is stored in logged_in_user.username
How can i realize…this…
swoany
Remco S. wrote:
<%= link_to 'MyLink', user_path(logged_in_user) -%> But i don’t want the link ‘Mylink’ but the username instead of. The
username is stored in logged_in_user.username
<%= link_to logged_in_user.username, user_path(logged_id_user) -%>
Lutz
Lutz H. wrote:
Remco S. wrote:
<%= link_to 'MyLink', user_path(logged_in_user) -%> But i don’t want the link ‘Mylink’ but the username instead of. The
username is stored in logged_in_user.username<%= link_to logged_in_user.username, user_path(logged_id_user) -%>
Lutz
Hi Lutz…thanks!!
Hi,
Remco S. wrote:
Lutz H. wrote:
<%= link_to logged_in_user.username, user_path(logged_id_user) -%>
Take a look at
for more details of the link_to helper.
Lutz
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs