Rails 2.0.1 & dynamic scaffolding? Any alternative?
Sultan Bhatia
6 posts
|
I am a newbie, and I am learning RoR from “Agile Web Development with Rails” by Thomas & Hansson. In one of the “iteration” this is the code: class AdminController < ApplicationController
scaffold :product I have heard of ActiveScaffold, but that seems very complicated. |
Esmaeil Khak...
3 posts
|
Sultan, I really feel for you. I was in the same place two days ago. Try this, inside of your Depot folder, and let me know if it works: script/plugin install http://svn.rubyonrails.org/rails/plugins/scaffolding/ |
Sam Rawlins
1 post
|
Sultan, If you are using the latest Rails (2.0.x), I suggest you read Sean Lynch’s modified “depot” demo (now “exchange”) which accomplishes the same as what is in Chapter 4 of AWDWR. It’s at his blog: Sam Rawlins. |
Jankees
4 posts
|
Isn’t there a way to downgrade the Rails version, I just started with the rails book and have the same problem. Maybe it’s nicer to learn Rails with the old version and then look at the differences. Thanks in advance! |
Jankees
4 posts
|
I was trying the new method as mentioned in the article linked above but i get empty insert/edit pages (no input fields) does anyone know what’s the problem? I get this in the console: |
Jankees
4 posts
|
On this URL you see a screenshot of the problem, http://test.base42.nl/screenshot_002.jpg I hope someone can help me. |
Jankees
4 posts
|
UPDATE; I just found out why it didn’t work, sorry for bothering you guys. It didn’t work because i did because of this my scaffold didn’t create the required field on the edit page. |
Sultan Bhatia
6 posts
|
Thanks to everyone who helped me out. Sorry for the delay in saying thanks, I was busy with another project. |
Travis Erard
1 post
|
With Fairlead’s Exchange demo: |
Jochen Hayek
4 posts
|
Somebody asked a while ago, how to downgrade. |
Jochen Hayek
4 posts
|
So you see, I know how to downgrade and exercise the book with rails-1.2.x, I ran into that problem with the dynamic scaffolding as discussed in “create the maintenance application” in ch. 6.1: What’s the easiest way around? |
Steve Jones
12 posts
|
Dynamic scaffolding is deprecated in 2.0. If you want to do AWDWR in rails 2.0.2 you have a thread already exploring that alternative at the following: http://forums.pragprog.com/forums/22/topics/184 and here are some more resources. |
Bala Paranj
6 posts
|
I have upgraded the Depot app to Rails 2.0 version. You can watch the screencast for free at http://www.rubyplus.org/episodes/19-AWDR-Depot-App-using-Rails-2-version.html The modified code is not distributed by me. Bug Dave, he might distribute my code for |
13 posts, 8 voices
