similar to: Initializers from Rails 2 to Rails 3

Displaying 20 results from an estimated 90000 matches similar to: "Initializers from Rails 2 to Rails 3"

2010 Aug 17
3
Rails 3 flash message problems
The following code in my application_helper.rb class either eats the flash message or escapes it and does not display properly: # Outputs the corresponding flash message if any are set def flash_messages messages = [] %w(notice warning error).each do |msg| messages << content_tag(:div, content_tag(:p, html_escape(flash[msg.to_sym])), :class => "message
2010 Jun 24
1
Rails 2.3.2 upgrade to 2.3.8 problem
Upgrading to Rails 2.3.8 from 2.3.2 has broken views in my application. Specifically the field labels are all displaying </br> after the label text and therefore the alignment is all messed up. Instead of nicely aligning with the label text on the top and text entry field under it, they line up side-by-side and are misaligned. The tell-tale sign is the appearance of </br> tag after
2011 Feb 19
2
Active Record Query
A course has many lessons and a lesson has many topics. A topic can have a recipe or vice versa, a recipe has many topics (optional). I need to come up with the most efficient way of querying the database to find those topics belonging to a course (via lessons of course) which have a recipe (in other words recipe_id is not null for this topic record). Simple but challenging :) Thanks for your
2011 Jan 02
1
After upgrading to Rails 3, getting errors in Rails 2 app
Hey all After upgrading to Rails 3, when I try to run Rails 2 app, I get this: script/server Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. MacBook-Pro:MK JANUARY jmerlino$ rails -v Rails 3.0.3 So I
2011 Nov 24
4
How to upgrade rails 2 application to rails 3?
I developed a rails application using rails 2.3.8 version but now how to upgrade this application in rails 3.0 version. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe
2011 Jan 17
3
Rails 3: Using local timezone on DB
I''m in the process of upgrading my existing Rails 2.3.8 app to Rails 3.0.3. One problem that I have encountered is how to make rails 3 read/write date/time data into the DB in localtime. In Rails 2.3.8, commenting out the ActiveRecord timezone settings did the trick, however in Rails 3, that doesn''t work as the default is now UTC. I have tried setting the config.time_zone to
2010 Aug 03
4
rails 3 download - where ?
I''m trying to update my rails from 2.3.8 to 3.0, where can I get the kit from ? Thanks, Dani -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group,
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all, i have installed rails 3 using RVM . the prob is now i have two parallel projects where one is in 2.3.5 and another is in rails3. i use Mac o x 10.6.3 mysql :Server version: 5.1.56 MySQL so can i switch in between rails3 and rails 2.3.8?? this is my gem list... actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5) actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2011 Apr 18
1
rails runner giving problem
Hi, I have a rails 2.3.8 application, which has some ruby script in scripts folder which has ran through the cron. I just upgraded my application to rails 3. My problem is I am not able found a solution to run these scripts. In Rails 2.3.8:- ruby script/runner test.rb In Rails 3:- rails runner test.rb does not working. Can anyone tell me How can I run the scripts? Thanks, Mike -- Posted
2010 Sep 08
4
On init webrick get older rails version (suddenly)
Hi! I''m running rails 2.3.8, confirmed by the prompt (rails -v) I''m doing a project and on other occasions I have needed install nested forms. I followed the steps (http://weblog.rubyonrails.org/2009/1/26/nested-model-forms) This steps: $ git clone git://github.com/alloy/rails.git $ cd rails $ git checkout origin/normalized_nested_attributes $ cd ../.. $ ruby
2010 Aug 23
11
Rails 2.3.8 or Rails 3 ?
Hi, If I''m going to start developing a new rails based web application, should I go for Rails 3 or Rails 2.3.8 ? why this and not the other ? Thank you. Dani -- Posted via http://www.ruby-forum.com/. -- 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
2011 Feb 19
1
undefined method `map' for nil:NilClass for rails 2.3.2
Hai guys! When i try to do rake gems:install and rake gems:refresh_specs in my app below error is occurred. please give some solution for this. config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. rake aborted! undefined method `map'' for nil:NilClass enivorment.rb RAILS_GEM_VERSION =
2010 Jun 14
3
How do I upgrade rack in my current rails app?
Hi, I have a rails 2.3.8 app which has rack 1.1.0. I get parse_multipart error. There''s a new release of rack 1.2.0 which might fix the multipart error. The question is how I upgrade the rack? I froze the rails. I did "gem update rack" and it upgraded rack to 1.2.0. But my rails app still uses rack 1.1. How do I set the rails app use rack 1.2.0? Thanks. Sam -- Posted via
2010 Aug 08
1
Why Rails 3 installation is so pane full
Hi all Why Rails 3 installation is so pane full...? I am using fedora 10, ruby 1.8.6 rails 2.3.5/2.3.8 Now want to upgrade to rails3 i tried so many links... but nothing find essay.. for Rails 3 problem in ruby installation please suggest good links ... Thanks.... Regards Shyam 971-618-9650 shyam.heroku.com -- You received this message because you are subscribed to the Google Groups
2010 Aug 18
1
upgarde from rails 2.3.5 to rails 2.3.8
Hi I upgraded my rails application rails 2.3.8 from 2.3.5 like below gem install rails -v=2.3.8 Now in environemnt.rb RAILS_GEM_VERSION changed to ''2.3.8''. Now when I tried to a previous migration like rake db:migrate VERSION=20100714122104 I got warning like DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks, vendor/plugins/paperclip/tasks,
2010 Jul 25
0
You can't set a constant with namespace in the initializers?
Help! in my rails controllers, there is a ''Admin'' namespace. (My the structure of the controllers dir is like this : app/controllers: home_controller.rb ... admin/posts_controller.rb admin/pages_controller.rb The ''Admin'' will automatically become a Module constant (I know it from the console: ''puts Admin => Module''); And in my
2010 Nov 14
4
Problem with Rails 3 "rails server -d"
In my app controller I require a file named "configuration.rb" in the config directory like so require "config/configuration" This has been working perfectly fine in Rails 2 in all environments including prod. Having migrated to Rails 3 this works in all environments if I run "rails server" without the daemon option. If I run the server with the daemon option (-d),
2011 Apr 18
1
please help:Can't initialize a new Rails application within the directory of another.
I have just install Netbeans 7.0. then install the plugins. But when I create a rails project I get the following errors: Can''t initialize a new Rails application within the directory of another, please change to a non-Rails directory first. Type ''rails'' for help. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the
2010 May 25
1
Rails 2.3.8 still escaping html in strings
Hi All, After a failed attempt to update to 2.3.7 yesterday I''ve tried again today to upgrade to 2.3.8 and whilst most of the site is working I''m still getting some content escaped. I''ve got a helper method that takes a block and uses concat, it can also take some content passed through in a parameter - if content is passed in via the parameter then that is getting
2010 Aug 03
2
PDFKit Fork() Function Unimplemented Error - HELP!
Hello All, We''re working on a project on a Windows machine that will use PDFKit to convert an HTML page to a PDF. I have followed all the instructions at GitHub (http://github.com/jdpace/PDFKit), for installing wkhtmltopdf and PDFKit, then creating the config file in ''config/initializers/pdfkit.rb'' and then finally, setting up Middleware for Rails apps in