the tutorial at http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html?page=3 uses this code: <%= link_to %Q{#{category.send(column.name)}}, :action => ''show'', :id => category %> what is this %Q method? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
nevermind... kept googling and found it: http://www.rubycentral.com/book/language.html#UB On Mar 27, 1:05 pm, "jemminger" <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the tutorial athttp://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rail... > > uses this code: > <%= link_to %Q{#{category.send(column.name)}}, :action => ''show'', :id > => category %> > > what is this %Q method?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> the tutorial at > http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html?page=3 > > uses this code: > <%= link_to %Q{#{category.send(column.name)}}, :action => ''show'', :id > => category %> > > what is this %Q method?It''s the same as using double quotes... but sometimes makes things nicer... say when you want to embed a lot of double quotes in your string and not worry about escaping them. irb(main):003:0> %Q{one "two" three} => "one \"two\" three" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---