Ticket #41: Docs_add_another_to_s_example.patch

File Docs_add_another_to_s_example.patch, 0.5 kB (added by qeantk, 2 years ago)
  • README

     
    194194      link_to category 
    195195    end. 
    196196    join( " | " ) 
     197 
     198You should also call to_s for any other method you want to call directly (as 
     199opposed to the @helpers technique below), but don't want output directly, such 
     200as putting a named_route in a form_for. 
     201 
     202  form_for :resource_name, url => resource_name_path(@instance).to_s 
    197203 
    198204== 6. The <tt>tag!</tt> Method 
    199205