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 <[email protected]> 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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://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 [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to