activesupport
3.days.ago, 2.hours.from_now etc without Rails?
Some book mentioned some gem to decorate numbers with #days, #megabytes, #minutes etc. Is this only in ActiveSupport, or is there a smaller开发者_如何学JAVA gem that provides this functionality for us[详细]
2023-03-14 12:11 分类:问答Segmentation fault in rails / activesupport 3.1 and ruby 1.9.2
I upgraded a rails application to rails 3.1 (rc4) and now get random segmentation faults in activesupport. These faults happen when starting the application (rails s) or running tests (e.g. rake spec)[详细]
2023-03-12 04:41 分类:问答active_support dependencies error when using candy
I am getting the following error when I use Candy in my Rails project. Really a syntax error? => Ctrl-C to shutdown server[详细]
2023-03-10 09:29 分类:问答How do you test a module that extends ActiveSupport::Concern?
I have a module that extends ActiveSupport::Concern. Here is the included block: included do after_save :save_tags[详细]
2023-03-10 00:16 分类:问答Rails 2.3.5 and I18n localization problem
For a project I am locked into rails version 2.3.5; I am trying to localize the application and and I want to use a specific locale.[详细]
2023-02-27 07:06 分类:问答require': no such file to load -- active_support/core_ext/logger
When I do rails s or rails c.. it gives me this error. tried removing rails and reinstalling then uninstalled whole of ruby and reinstalled both rails a ruby still the same error. line 7 that is gener[详细]
2023-02-24 01:01 分类:问答How to use the Pending module in ActiveSupport
I can\'t seem to make the Pending module in ActiveSupport::Testing work. test/unit/pending.rb contains:[详细]
2023-02-20 05:18 分类:问答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 分类:问答How do I use after_save_callback_chain?
The main documentation describe it at debugging callbacks but it seems to not exists: http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html[详细]
2023-02-18 01:41 分类:问答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 分类:问答