http://www.youtube.com/watch?v=Fg5KhZ8DHQ4
Kazama watch over Himawaris (Sin Chan’s Sister)
Language: Malay
http://www.youtube.com/watch?v=Fg5KhZ8DHQ4
Kazama watch over Himawaris (Sin Chan’s Sister)
Language: Malay
29 Apr, 2008
Posted by: admin In: Funny Anime
Problem
Upgrading an existing Ruby on Rails application from 1.2.3, to 2.0.2, presents few problems. I will try and keep a record of the ones I encounter along the way, here.
Solution
Change the config/environment.rb to let the application know to use the 2.0.2 gem rail version,
change the following line from:
RAILS_GEM_VERSION = ‘1.2.3′ unless […]
21 Apr, 2008
Posted by: admin In: Funny Anime
Problem
You are developing on the latest version of Rails (2.1), but your production server for deployment uses version 2.0.2 (as dreamhost is using at the moment).
Solution
First change the environment.rb file to use the rails version in your deployment server
RAILS_GEM_VERSION = ‘2.0.2′ unless defined? RAILS_GEM_VERSION
You should probably be geting the error: undefined method = time […]
Enjoy a friendly community of fellow designers and developers.
Ruby On Rails
If you get this strange error :
ActiveRecord::RecordNotFound (Couldn’t find Structure with ID=update_table)
You have probably taken a start with “normal” scaffold and then tried to install activescaffold.
Simply edit your config/routes.rb and remove all map.ressources :
Problem
To get used to the new ways of working with Rails 2.
Solution
Here are some of the new ways of doing things in Rails 2.
Create a scaffold and migration on one step:
./script/generate scaffold product fied1_name:string field2_name:string field3_name:float
Make sure that you don’t have any previous migration(ie manually created) for the same model, as the generator […]