|
|
[Rails] Re: Form not working...: msg#03313
RubyonRailsTalk
|
Subject: |
[Rails] Re: Form not working... |
Just another "cut and paste" effect...
I agree about "Agile Development with Rails" is a great book....
...but you shoud not cut all of the examples in it...and paste them to
your application...
Ar Chron escribiÃ:
Gabriel Bianconi wrote:
It's working! Thank you very much...
I used :product because I saw that in a tutorial.
That response tells me that you have to slow down and think about what
you're doing, not just type in code because you saw it somewhere else...
You're talking about "sfiles" and the tutorial you saw is talking about
"products"... why would you expect their code to work in your app?
Find a good tutorial, or a good book (Agile Web Development with Rails
springs to mind), and read it for understanding... you know, concepts.
Don't just type in what you see, because all that proves when it works
is that you'd make a good code-monkey, typing what you're told.
Perhaps a good place to start would be a new Rails application...
In that application directory scaffold up a very basic model..
ruby script/generate scaffold person first_name:string last_name:string
Now go look through model, the controller, and the views created for you
to see how it all fits together. I wouldn't use scaffold to build a
production application, but as an instructional tool for beginners, its
great.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
|