You'll also need to make sure app/services is in autoload_paths in application.rb
https://github.com/JhonnatanMc/Object_Service_RoR/blob/master/prueba/config/application.rb#L14 On Tuesday, March 31, 2015 at 2:16:55 PM UTC-7, Ruby-Forum.com User wrote: > > Colin Law wrote in post #1171241: > > On 31 March 2015 at 21:32, Jhonnatan Mc <[email protected] > <javascript:>> wrote: > >>> > >>> Look at the name of the class (UserService). Now look at the name of > >>> the file. Now look again if necessary. Keep looking... > >>> > >>> Colin > >> > >> I tried changed the name of el file from UserService to user_service. > >> the class name is UserService. > > > > Correct the code in your repo then copy/paste here the error you get > > with the correct name. > > > > Colin > > NameError in UsersController#create > uninitialized constant UsersController::UserService > > -- > Posted via http://www.ruby-forum.com/. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0c9facb8-2c85-4430-ad16-f0b671978f93%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

