Yes I have the table in the database but I do not why it don´t found.
here my role.rb:

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 <javascript:>> 
> 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.

Reply via email to