class Backoffice::UsersController < ApplicationController
def build params
but using it in the create method,
@user = User.new(UserParams.build(params))
I get an error :
undefined method `build' for Backoffice::UsersController::UserParams:Class
I guess I am wrong somewhere as the class is defined in the Backoffice
module... where I am wrong ?
thanks for help
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d0de8d7d-b68e-4ba8-9976-302b10a09298%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.