Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Dan A
Courses Plus Student 4,036 PointsGetting Started with Rails - confusion
I've just finished this section successfully but I don't understand a few things. Basically, where does the form and app logic come from? by entering the commands:
..$ rails generate scaffold status name:string content:text
Is scaffold a library? Is "status" the name of a scaffold library or template? Basically, I just want to know a little more about what is going on? I assume name/string and content/text are just key:value pairs that I can edit. Also, How can I update and add a 3rd field like "favorite color" and get everything to update? I kinda botched things up going off on my own here.
Thanks
1 Answer
Tibor Szalay
Courses Plus Student 5,754 PointsA lot of people feel like this when first starting out with rails, I would first recommend to dive into Sinatra because if you try to make a rails like app on that level, then it explains a lot of things. I started mine at https://github.com/Core966/Sinatra_Template_Kickstart and it is far from finished even if it took several days. Also, a highly recommended read: http://www.sitepoint.com/new-book-jump-start-sinatra/ If you start to understand things with Sinatra, then you can get back to rails (from the beginning) and all will come clear.
Tip: Once you understand what is the "magic" in rails you begin to truly understand it. :)