NAYAK wrote:

> First of all, if you want to use puts in your views, use <% %> tags 
> rather than <%= %> tags.

>     I defines a partial see below:
>     <%=
>      puts @project.version
>      text_field_tag "project_version", @project.version
>     %>

The above will puts the @project.version to the STDOUT stream, then will return 
the text_field_tag into the <%= %> location.

This is a subtle hair to split (and 'p' is more useful than 'puts' there), but 
debugging out of the top of a <%= %>, while expressing its last line, is very 
common...

-- 
   Phlip


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

Reply via email to