Legacy version of the Ruby on Rails web development framework.
Questions tagged [ruby-on-rails-2]
746 questions
0
votes
2 answers
Restrict access to "destroy" feature in Ruby on Rails app
Thanks in advance for your help! I have a site built in Ruby on Rails (2.3.15, 1.8.7) that lets people create itineraries to different locations and with different activities at each location. The site has a way of ensuring that the current user can…

KDP
- 634
- 1
- 11
- 31
0
votes
2 answers
Missing required but installed gems
My application works fine on my personnal computer, now it's time to deploy !
I try from several hours to deploy my Rails 2 application to a mutualized server. I precise I have not so much permissions on the server, but the vendor says I can run…

pierallard
- 3,326
- 3
- 21
- 48
0
votes
1 answer
Will_Paginate on two models with both models sent together as a collection
I have two models (Folder and Document) which I need to show in a single view together. However, to reduce the number of queries sent I am collecting the Documents only if the folders are less than 12 (my :per_page). While this is working fine, I am…

LearnerCoder
- 3
- 3
0
votes
1 answer
redirect with saving url params?
some time ago forum was created in public directory of a rails app. then forum was moved to a sub-domain.
I've created a redirect for 'domain.com/forum' => 'forum.domain.com by editing routes & creating redirect action.
My question is: how may i…

Elmor
- 4,775
- 6
- 38
- 70
0
votes
1 answer
How to order an array by the name of a referenced table row, rather than it's ID
I apologize for any poor terminology I use, as I'm a pretty green (Rails) programmer. But here is my question: I'm working on a Rails app (2.3.8) that manages projects. Every project has one company (in a separate table) and one contact (in a…
0
votes
0 answers
Migrated database from sqlserver to mysql seems to have error in rails
I have completed migrating database from sqlserver to mysql but it seems to have problems in rails. When i fetch record in rails console for eg:
"1", "LastUpdateSeqNo"=>nil, "CreationDate"=>"2005-08-03…

Chitrank Samaiya
- 841
- 10
- 20
0
votes
1 answer
How to create a link that will update a column
I'm using Rails 2.3.8.
How do you create a link that will update a column?
So, I'm trying <%= link_to 'stuff', :controller => controller, :action => action, :id => id %>
The action method will just update the column of the row associated with :id,…

boo-urns
- 10,136
- 26
- 71
- 107
0
votes
1 answer
Catch all route and 404 in rails 2.x
I have a CorsController whose job it is to respond crossdomain ajax headers (if the Origin is allows) whenever my application receives an OPTIONS request. But because I don't know exactly where that OPTIONS request will land, I have a catchall…

Alex Wayne
- 178,991
- 47
- 309
- 337
0
votes
1 answer
Injecting a scope through an association extension in Rails 2.3.17
I'm upgrading from Rails 2.3.5 to 2.3.17 and have come across a pretty obscure problem. I use the following extensions to inject a scope within an association accessor, and provider a custom builder:
module XYZFilterExtension
def…

Brendon Muir
- 4,540
- 2
- 33
- 55
0
votes
1 answer
Share session between 2.3 and 3.2 app
I have an app written in rails 2.3. This app uses devise for authentication. I'm on the need to create a SSO with some other projects, like Worpdress.
Because newer versions of devise includes omniauth support, I need to create a intermediate app…

Seoman
- 783
- 1
- 7
- 18
0
votes
2 answers
active_support/whiny_nil.rb:52:in `method_missing' error occurs when I upgrade my rails 2.3.3 project to 2.3.17
Our rails project version is 2.3.3. Recently, however, we decided to upgrade rails version to 2.3.17 to patch the security holes.
But after upgrade my rails gem, I got the following error.
Is there anyone whoh had a same…

Benjamin
- 10,085
- 19
- 80
- 130
0
votes
1 answer
Execute rails server from ruby app on Windows
I must execute a Rails Server (Rails version : 2.3.4, Ruby version : 1.8.7) from a Ruby script ( version 1.9.3).
My ruby script is:
system(start G:/app/Ruby187/bin/ruby.exe G:/app/name_app/script/server)
When I started this script, I got this…

user2058824
- 13
- 3
0
votes
2 answers
How to Create a Blog from Scratch Using Ruby on Rails - from rails 2.x to 3.x - no visable comments
Im working with How to Create a Blog from Scratch Using Ruby on Rails tutorial from sixrevisions.com.
When I run server and create new post I have no visable option to add comment. According to tutorial I should be able to add end edit comments to…

szatan
- 517
- 4
- 8
- 26
0
votes
2 answers
Routing error in tutorial app converted from rails 2.x to 3.x
I'am working on sixrevision.com tutorial “How to Create a Blog from Scratch Using Ruby on Rails” . I try to convert It from rails 2.x to 3.x. When I run localhost:3000 I get this:
Routing Error
uninitialized constant PostController
Try running…

szatan
- 517
- 4
- 8
- 26
0
votes
1 answer
Routes.rb - from Rails 2.x to Rails 3.x "How to Create a Blog from Scratch Using Ruby on Rails" tutorial
I'am working on "How to Create a Blog from Scratch Using Ruby on Rails" from http://sixrevisions.com. The tutorial was created for Rails 2.x. I try to get It working on Rails 3.x. . When I run server I and run localhost:3000 get some serious…

szatan
- 517
- 4
- 8
- 26