ruby-on-rails-2
Error while trying to make my rspec 1.2 tests go faster on JRuby and Rails 2.3.10 using nailgun and spork
I recently start using JRuby in my Rails 2.3 webapp. Since then, I have been experiencing slowness in my rspec tests... the test are taking too long to run since I switched to JRuby.[详细]
2023-03-06 13:21 分类:问答Text Field in Rails whose size increases dynamically
I am trying to implement a groups feature similar to that of Facebook in my project. I am using Rails 2.0.2 and Ruby 1.8.7 for project specific purposes. I am using Ubuntu 10.04 OS.[详细]
2023-03-03 16:58 分类:问答Rails 3 equivalent for controller.process (building seamless user authentication)
I\'ve been trying to develop a controller action for user authentication so I can do something like this:[详细]
2023-03-01 15:25 分类:问答Setting up Capybara for Rails 2.3 and Rspec
I\'m having some trouble setting up capybara (0.4.1.2) in a rails 2.3.8 app with Rspec 1.3From the installation capybara instructions, I\'ve inserted the line:[详细]
2023-02-27 17:38 分类:问答Throw an exception whenever someone tries to mass-assign protected attributes
I\'m fixing some mass assignment vulnerabilities in a client\'s application and I want to make sure Rails isn开发者_如何学Go\'t silently dropping attempts to mass assign protected attributes. Instead,[详细]
2023-02-22 13:14 分类:问答How do I make a single element JSON array using the Rails XML Builder?
I am using a Rails app as an JSON API service. There is one field that can either hold one or two strings. Below is how I\'m creating this JSON element in the .xml.builder file, getting the informatio[详细]
2023-02-19 23:34 分类:问答Implementing auto complete for more than one field in Rails
I have an app, which implements a group feature. Each group has n members. Also, each group has a group specific profile pic to it.[详细]
2023-02-19 06:17 分类:问答Rails: get #beginning_of_day in time zone
I have a default time zone setup for the rails application. And an instance of the Date object. How can I get make Date#beginning_of_day to return the beginning of the day in the specified time zone,[详细]
2023-02-19 05:48 分类:问答Using ActiveRecord models from Rails app in a Sinatra app produces multiple warnings
We are using Sinatra to provide HTTP API access to our service, while most of the user-facing functionality uses Rails 2.3.8. Both the Sinatra and the Rails application share the same ActiveRecord mod[详细]
2023-02-17 07:00 分类:问答How to call a Rails named route when testing controllers with RSpec?
I want to test the permalink action in my articles controller, which is using a named route (/permalink/terms-of-use):[详细]
2023-02-17 06:35 分类:问答