Nested model not available in Devise views
问题 I'm having a problem with associations not being available in my views. My models are: :user has_many :subscriptions :subscription belongs_to :user I'm using Devise to manage authentication etc. for Users What I'd like to do: when creating a new user in the registration process, I also want to also create a subscription for that user. Since Devise::RegistrationsController#new by default does not initialize an associated subscription, I've created my own RegistrationsController : class