On 11 April 2014 14:07, Antonio Arcos <elchatarrerode...@gmail.com> wrote:
> Yes I have the table in the database but I do not why it don´t found.
> here my role.rb:

How do you know that the table refinery_roles is in the db?  Post the
contents of db/schema.rb here.

Colin

>
>> module Refinery
>>   class Role < Refinery::Core::BaseModel
>>     has_and_belongs_to_many :users, :join_table => :refinery_roles_users
>>     before_validation :camelize_title
>>     validates :title, :uniqueness => true
>>     def camelize_title(role_title = self.title)
>>       self.title = role_title.to_s.camelize
>>     end
>>     def self.[](title)
>>       find_or_create_by_title(title.to_s.camelize)
>>     end
>>  end
>> end
>
>
> Thanks
> Antonio
>
> El viernes, 11 de abril de 2014 14:34:28 UTC+2, Colin Law escribió:
>>
>> On 11 April 2014 08:51, Antonio Arcos <elchatar...@gmail.com> wrote:
>> > Hello developers, I am in trouble.
>> >>
>> >> When I load my web page, it returns "we're sorry, but somethig went
>> >> wrong"
>> >> and then I have seen my log and it returns this error:
>> >
>> >
>> >
>> >> Started GET "/" for 141.21.12.238 at 2014-04-11 09:39:10 +0200
>> >>
>> >> Processing by Refinery::PagesController#home as HTML
>> >>
>> >>   Parameters: {"locale"=>:de}
>> >>
>> >> Completed 500 Internal Server Error in 2ms
>> >>
>> >> ActiveRecord::StatementInvalid (Could not find table 'refinery_roles'):
>> >>
>> >>   app/models/refinery/role.rb:14:in `[]'
>>
>> You have not told us several vital facts.
>> 1. Do you think there *should* be a table refinery_roles?
>> 2. If the answer to 1 is Yes, then is there actually such a table in
>> the database?
>> 3. If the answer to 1 is No, then you need to show us the code around
>> role.rb line 14 in order that we may help you to understand why it is
>> expecting such a table.
>>
>> Colin
>
> --
> 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+unsubscr...@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/8f8d8d9b-65b6-4494-a1ca-d9f6b3d42ddd%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@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/CAL%3D0gLvtKnqTzP4RGmy5oPE43Er%3DjeF52vB0sZRVnWK6hCoJGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to