Thanks Bill,

I did try google first, but didn't find the correct answer :)

OK - I tried what you said, but that seemed to give me a new problem :(

    <%= form_tag {:controller => "customer", :action => "login"} %>

    <p>User name: <%= text_field "customer", "nick"  %></p>
    <p>Password: <%= password_field "customer", "password"  %></p>
    <p><input type="Submit", value="Log in"/></p>
     <% end %>
  </p>


Error now is

syntax error, unexpected tASSOC, expecting '}'
...cat(( form_tag {:controller => "customer", :action => "login...
                              ^
/Users/pmoran/rails/r4music1/app/views/customer/_login.html.erb:1: 
syntax error, unexpected ',', expecting '}'
...ag {:controller => "customer", :action => "login"} ).to_s); ...
                              ^
/Users/pmoran/rails/r4music1/app/views/customer/_login.html.erb:9: 
syntax error, unexpected kENSURE, expecting $end

In terms of the scaffold stuff, well I also tried that and got a error 
:(

rake db:create:all
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, 
Rakefile.rb)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in 
`raw_load_rakefile'
(See full trace by running task with --trace)

And then

 ruby script/scaffold test_model field1:string field2:text 
field3:integer
ruby: No such file or directory -- script/scaffold (LoadError)
-- 
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