railscasts
Rails Validating on a virtual attribute, setting form error. Railscast #32
I\'m basically attempting to implement the solution from Railscast #32, modernized for Rails 3.0.7 http://railscasts.com/episodes/32-time-in-text-field[详细]
2023-03-08 16:13 分类:问答has_many :through not giving access to <class>_id from base
Model code class Location < ActiveRecord::Base attr_accessible :day_tokens, :name, :address, :phone has_many :locavailability[详细]
2023-03-07 14:53 分类:问答Multi-step form in Rails 3 with Paperclip attachments
I\'m creating a multi-part form in the style that Ryan Bates describes here: http://rail开发者_Go百科scasts.com/episodes/217-multistep-forms[详细]
2023-03-02 08:09 分类:问答Can't understand Ruby's magic
In railscasts project you can see this code: before(:each) do login_as Factory(:user, :admin => true)[详细]
2023-02-11 04:05 分类:问答heroku & devise user sign up registration controller error
I just switched to Devise/Omniauth combo and everything is working properly on my localhost server.However when I uploaded to heroku the app crashes when the user clicks sign up on the traditional sig[详细]
2023-02-08 03:32 分类:问答Railscasts, where 'token' variable comes from
The open source project railscasts has User model (link to the full file) class User < ActiveRecord::Base[详细]
2023-02-08 00:27 分类:问答Paypal Express ActiveMerchant integration
I am following Ryan Bates\' railcast 146 and it is really helpful.However, Im trying to remove the cart object from the process, and just process an order individually.The problem I am having is how t[详细]
2023-02-01 17:20 分类:问答cancan rules creation problem
i have rails app that contains following models - User, Blog, Post, BlogMembership. class BlogMembership < ActiveRecord::Base[详细]
2023-01-28 01:20 分类:问答Rails - Railscasts nested complex forms
I am using Ryan Bates\' Complex Forms Deep Branch, and trying to replicate that example for a form that has two additional nested levels.[详细]
2023-01-26 15:42 分类:问答How can I write an RSpec test for link_to_add_fields helper from Railscast 197
I used the approach details in Railscast espisode #197 on how to add dynamic input fields, but I\'m not sure how to write an RSpec test for it.Suggestions?[详细]
2023-01-16 17:27 分类:问答