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
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:
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
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?
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
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
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
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
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
9 matches
Mail list logo