Haml will interpolate just like Ruby so you can do the following: Signed in as #{current_user.full_name} | #{link_to 'Log out', destroy_user_session_path}.
HTH, James On Apr 27, 8:08 pm, Bill Lazar <bstgro...@gmail.com> wrote: > Is there a reason not to use this? > > = link_to(@user.full_name, user_path(@user)) + " " + > @question.created_at.strftime("%B %d, %Y") > > I use this pattern all the time. > > Bill > > On Apr 26, 2011, at 8:56 AM, roguecartel wrote: > > > > > This is my example -- I cn't get it to work and process the ruby-code > > without putting it into a string" > > > = "#{ link_to @user.full_name, user_path(@user)} > > (#...@question.created_at.strftime("%B %d, %Y")})" > > > On Mar 27, 6:59 pm, radhames brito <rbri...@gmail.com> wrote: > >> On S = "#{ link_to @user.full_name, user_path(@user)} > >> (#...@question.created_at.strftime("%B %d, %Y")})" > > un, Mar 27, 2011 at 9:59 PM, radhames brito <rbri...@gmail.com> wrote: > >>> ="text #{ruby_code}" > > >> sorry is text not test > > > -- > > You received this message because you are subscribed to the Google Groups > > "Haml" group. > > To post to this group, send email to haml@googlegroups.com. > > To unsubscribe from this group, send email to > > haml+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/haml?hl=en. -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.