Jan 17, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / I am new

What exactly is the problem you need help with?

 
Jan 8, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Rails 2.0.1 & dynamic scaffolding? Any alternative?

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.

http://www.ruby-forum.com/topic/134691#new

 
Jan 5, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Depot with Rails 2.0.2

Indeed it did snowball. Don’t know if I wouldn’t recommend rolling back to Rails 1.2.3 or such.

 
Jan 4, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Depot with Rails 2.0.2

Be sure to check out this thread http://forums.pragprog.com/forums/22/topics/172 and the fairleads blog posting http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.html.

I had installed the scaffolding plugin

depot>ruby/plugin install http://svn.rubyonrails.org/rails/plugins/scaffolding/

instead of dynamic scaffolding I used depot>ruby script/generate scaffold Product title:string description:text image_url:string

 
Jan 4, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / annotate_models plugin

I tried it and also got Plugin not found: ["http://svn.pragprog.com/Public/plugins/annotate_models"]

 
Jan 3, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Using MySQL with Instant Rails

Hi Ron, using depot>mysqladmin -u root create depot_development just bypasses the necessity of opening an sql GUI or even the command line mysql tool. You can use the mysql console by typing depot>mysql -u root and when the console opens CREATE DATABASE depot_development;. Don’t forget to use the semicolon. Maybe HeidiSQL is the problem.

Also, you said you changed configuration.rb from having SQLite. Is that because you are running rails 2.0? Type depot>rails -v if you don’t know the rails version.

Don’t get discouraged as RoR is not as mature as maybe what you’re used to but it is maturing fast and when the web world is a majority RoR, you’ll have gotten in close behind the bleeding edge.

As proof of acceptance of RoR, last summer University of North Florida offered Web Engineering with Ruby on Rails as a masters elective in the school of computing.

 
Jan 2, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Depot with Rails 2.0.2

Good work on your environment Joel. Doing it the hard way is the best way to learn. You guys will have to work on without me as I kept my face in AWDWR all thru the holidays and wrapped up depot. Still need to get back to the rest of the book but got sidetracked with another book on social networking sites. I’m doing that one in rails 1.2.3 though. Wish I had taken better notes but the one note I have is about a missing template login/list_users.html.erb in view path depot/app/views/ so I changed list_user.rhtml to list_user.html.erb and bingo! So much ruby, so little time.

 
Jan 2, 2008
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Time.now Paper Chap4,pg 44

If your paths are the same as the book then hello.rhtml should have access to @time in a controller method called ‘hello’.

 
Dec 23, 2007
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Depot with Rails 2.0.2

OK, I know, search the entire site for an answer before posting. Yep I found my answer at http://forums.pragprog.com/forums/22/topics/171?page=1#posts-2071. Just needed to comment out protect_from_forgery.

 
Dec 23, 2007
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / protect_from_forgery problems with Depot example

Whoops, seems like I also did not fully research before posting. I also just commented out “protect_from_forgery” and am up and running. —Thanks

 
Dec 23, 2007
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / We need a 3rd edition of AWDWR

With the brain-trust we have here shouldn’t there be enough information to forge through still using Rails 2.0.2 or later versions? It is painful but I am learning a lot about rails. Right now I’m figuring out how action_controller.session_store changed it’s session key handling in environment.rb and application.rb. I’ll let you know.

 
Dec 23, 2007
Lilsteve_small Steve Jones 12 posts

Topic: Agile Web Development with Rails / Depot with Rails 2.0.2

Guess I’m just stubborn. I’m working thru AWDWR with Rails 2.0.2. I worked around the scaffold thing in A1 successfully and now am building the cart in C2. Things are dandy until I try my first Add to Cart and get a <actioncontroller::invalidauthenticitytoken storecontroller in>. I half expected some trouble as I noticed that the environment.rb was different then noticed that application.rb was changed in 2.0.2 as well. Any clues?

12 posts