Colin Law wrote in post #1171241:
> On 31 March 2015 at 21:32, Jhonnatan Mc <lists@ruby-forum.com> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b8c48b7f0eadba1f036b367cce32aff6%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment