ruby-on-rails-2
how can I write my own validation helper method that can be reused in several different models
I want to write one common validation helper metho开发者_开发问答d that can be used in different models[详细]
2023-04-13 03:33 分类:问答Migrate an application from 2.3.8 to 3.1 [closed]
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-04-12 04:33 分类:问答Why does Rails not refresh classes on every request (despite configuration)?
I recently started having to restart my development server every time I change my code. My development.rb file still has this line:[详细]
2023-04-11 21:33 分类:问答ActionMailer 2.3.8 is sending all of my mail in HTML format, regardless of what I do
I\'m have a Rails 2.3.8 app, with a notifier in app/models/hello_notifier.rb that looks like this: class HelloNotifier < ActionMailer::Base[详细]
2023-04-11 07:07 分类:问答Grouping items that were created within a certain time of each other
I have a bunch of products (500k or so) in a database that were created over the last several years and I\'d like to group them together (Rails 2.3.14)[详细]
2023-04-10 11:27 分类:问答rails2 memcache expires_in problem
I have a strange problem with a Rails 2.3.4 application. The expires_in time is set to 10 seconds after each hour. But memcache seems to remember the value even after a cache flush.[详细]
2023-04-09 17:27 分类:问答Adding custom META tag to ActionMailer email in Rails 2.3.8?
I\'m sending an email using an ActionMailer class in Rails 2.3.8.I need to add a META tag to the HEAD of the email.Specifically, I want to add this (ultimately for handling special CSS3 on mobile devi[详细]
2023-04-09 08:43 分类:问答Adding extra run-time attribs to an activerecord object [duplicate]
This question already has answers here: Non persistent ActiveRecord model attributes 开发者_如何学C(5 answers)[详细]
2023-04-09 05:23 分类:问答Prevent database rollback in specs in Ruby on Rails?
When running RSpec tests in Ruby on Rails 2.3 with ActiveRecord, the database gets rolled back to the state after a before :all block after each example (it block).[详细]
2023-04-04 15:48 分类:问答How do i get Rails to route to a controller instead of a static file in the public folder?
In a Rails 2.3 app I have a SitemapController with a sitemap action that creates a human-readable sitemap page, and a route to that in the routes file. In the public folder there\'s a sitemap.xml file[详细]
2023-04-03 15:48 分类:问答