Marnen Laibow-Koser wrote:
Marnen Laibow-Koser wrote:
  
Browny Lin wrote:
    
I create a simple .rhtml file "hello.rhtml" in the "view" folder of the
rails app.
      
[...]

Ack!  Didn't notice this when posting the first time around...if you're 
using Rails 2.x, that should be hello.html.erb .  If your tutorial is 
using the .rhtml extension, then it's out of date and you should follow 
another tutorial.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
  
.rhtml works fine at least through 2.2.2.  .html.erb may be the way to go but .rhtml is not the problem.  The problem is what do you expect a string to do?  <%=  %> says to evaluate the ruby _expression_ and then return the result. I think the code should be something like <%= p 'whatever' %>.

Am I loosing my mind?

Norm

--~--~---------~--~----~------------~-------~--~----~
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