[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-06 Thread Colin Law
2009/10/6 Browny Lin rails-mailing-l...@andreas-s.net: 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

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-06 Thread Browny Lin
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:

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-06 Thread Marnen Laibow-Koser
Browny Lin wrote: 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! Then you have a

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-06 Thread Browny Lin
Hello, Marnen Laibow-Koser I run C:\Documents and Settings\brownylin\rails\my_apprake routes and the results are shown below three lines: (in C:/Documents and Settings/brownylin/rails/my_app) /:controller/:action/:id /:controller/:action/:id(.:format) What does the routing problem mean?

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-06 Thread Marnen Laibow-Koser
Browny Lin wrote: Hello, Marnen Laibow-Koser I run C:\Documents and Settings\brownylin\rails\my_apprake routes and the results are shown below three lines: (in C:/Documents and Settings/brownylin/rails/my_app) /:controller/:action/:id /:controller/:action/:id(.:format) OK, then

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-05 Thread Marnen Laibow-Koser
Browny Lin wrote: I create a simple .rhtml file hello.rhtml in the view folder of the rails app. html head titleHello World/title /head body pHello World!/p p%= 'Hello Dynamic World' %/p /body /html The problem is when I run the web server and load the

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-05 Thread Marnen Laibow-Koser
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

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-05 Thread Norm Scherer
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

[Rails] Re: Browser can't display the ruby part in rhtml

2009-10-05 Thread Browny Lin
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? Many many thanks again Marnen Laibow-Koser wrote: Marnen