It works !!! Thanks very very much for Colin ^^

I temporarily remove hello.html.erb and the browser show the error 
message "Missing template say/hello.erb in view path app/views"

So I change file name to hello.erb, and the ruby code inside <%= %> 
works!

Many thanks again


Colin Law wrote:
> 2009/10/6 Browny Lin <[email protected]>:
>>
>>
>> Thanks for your information, Marnen Laibow-Koser
>>
>> My rails is 2.3.4, I change the file "hello.rhtml" to "hello.html.erb"
>>
>> But the browser still just show the first line, and doesn't show
>> anything inside <%= XXX %>, do I miss something?
> 
> Make sure you have not got any other files hello.* in the view folder
> (backup files for example).  Some versions of Rails have been confused
> by these.  Temporarily remove hello.html.erb and make sure that it
> then complains it cannot find the file.  This will make sure it is
> picking up the right one.
> 
> What does the generated html look like (View, Page Source or similar
> in browser)? Post the relevant section here.
> 
> Colin

-- 
Posted via http://www.ruby-forum.com/.

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