my schema contents: > # encoding: UTF-8 > > # This file is auto-generated from the current state of the database. > Instead > # of editing this file, please use the migrations feature of Active Record > to > # incrementally modify your database, and then regenerate this schema > definition. > # > # Note that this schema.rb definition is the authoritative source for your > # database schema. If you need to create the application database on > another > # system, you should be using db:schema:load, not running all the > migrations > # from scratch. The latter is a flawed and unsustainable approach (the > more migrations > # you'll amass, the slower it'll run and the greater likelihood for > issues). > # > # It's strongly recommended to check this file into your version control > system. > ActiveRecord::Schema.define(:version => 20120717180765) do > create_table "refinery_image_page_translations", :force => true do |t| > t.integer "refinery_image_page_id" > t.string "locale" > t.text "caption" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_image_page_translations", ["locale"], :name => > "index_refinery_image_page_translations_on_locale" > add_index "refinery_image_page_translations", > ["refinery_image_page_id"], :name => > "index_186c9a170a0ab319c675aa80880ce155d8f47244" > create_table "refinery_image_pages", :force => true do |t| > t.integer "image_id" > t.integer "page_id" > t.integer "position" > t.text "caption" > t.string "page_type", :default => "page" > end > add_index "refinery_image_pages", ["image_id"], :name => > "index_refinery_image_pages_on_image_id" > add_index "refinery_image_pages", ["page_id"], :name => > "index_refinery_image_pages_on_page_id" > create_table "refinery_images", :force => true do |t| > t.string "image_mime_type" > t.string "image_name" > t.integer "image_size" > t.integer "image_width" > t.integer "image_height" > t.string "image_uid" > t.string "image_ext" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > create_table "refinery_inquiries_inquiries", :force => true do |t| > t.string "name" > t.string "email" > t.string "phone" > t.text "message" > t.boolean "spam", :default => false > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > t.string "subject" > end > add_index "refinery_inquiries_inquiries", ["id"], :name => > "index_refinery_inquiries_inquiries_on_id" > create_table "refinery_news_item_translations", :force => true do |t| > t.integer "refinery_news_item_id" > t.string "locale" > t.string "title" > t.text "body" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > t.string "source" > end > add_index "refinery_news_item_translations", ["locale"], :name => > "index_refinery_news_item_translations_on_locale" > add_index "refinery_news_item_translations", ["refinery_news_item_id"], > :name => "index_2fe5614a8b4e9a5c34c0f93f230e423e36d53bda" > create_table "refinery_news_items", :force => true do |t| > t.string "title" > t.text "body" > t.datetime "publish_date" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > t.integer "image_id" > t.datetime "expiration_date" > t.string "source" > t.string "slug" > end > add_index "refinery_news_items", ["id"], :name => > "index_refinery_news_items_on_id" > create_table "refinery_page_part_translations", :force => true do |t| > t.integer "refinery_page_part_id" > t.string "locale" > t.text "body" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_page_part_translations", ["locale"], :name => > "index_refinery_page_part_translations_on_locale" > add_index "refinery_page_part_translations", ["refinery_page_part_id"], > :name => "index_f9716c4215584edbca2557e32706a5ae084a15ef" > create_table "refinery_page_parts", :force => true do |t| > t.integer "refinery_page_id" > t.string "title" > t.text "body" > t.integer "position" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_page_parts", ["id"], :name => > "index_refinery_page_parts_on_id" > add_index "refinery_page_parts", ["refinery_page_id"], :name => > "index_refinery_page_parts_on_refinery_page_id" > create_table "refinery_page_translations", :force => true do |t| > t.integer "refinery_page_id" > t.string "locale" > t.string "title" > t.string "custom_slug" > t.string "menu_title" > t.string "slug" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_page_translations", ["locale"], :name => > "index_refinery_page_translations_on_locale" > add_index "refinery_page_translations", ["refinery_page_id"], :name => > "index_d079468f88bff1c6ea81573a0d019ba8bf5c2902" > create_table "refinery_pages", :force => true do |t| > t.integer "parent_id" > t.string "path" > t.string "slug" > t.boolean "show_in_menu", :default => true > t.string "link_url" > t.string "menu_match" > t.boolean "deletable", :default => true > t.boolean "draft", :default => false > t.boolean "skip_to_first_child", :default => false > t.integer "lft" > t.integer "rgt" > t.integer "depth" > t.string "view_template" > t.string "layout_template" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_pages", ["depth"], :name => > "index_refinery_pages_on_depth" > add_index "refinery_pages", ["id"], :name => "index_refinery_pages_on_id" > add_index "refinery_pages", ["lft"], :name => > "index_refinery_pages_on_lft" > add_index "refinery_pages", ["parent_id"], :name => > "index_refinery_pages_on_parent_id" > add_index "refinery_pages", ["rgt"], :name => > "index_refinery_pages_on_rgt" > create_table "refinery_resources", :force => true do |t| > t.string "file_mime_type" > t.string "file_name" > t.integer "file_size" > t.string "file_uid" > t.string "file_ext" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > create_table "refinery_roles", :force => true do |t| > t.string "title" > end > create_table "refinery_roles_users", :id => false, :force => true do |t| > t.integer "user_id" > t.integer "role_id" > end > add_index "refinery_roles_users", ["role_id", "user_id"], :name => > "index_refinery_roles_users_on_role_id_and_user_id" > add_index "refinery_roles_users", ["user_id", "role_id"], :name => > "index_refinery_roles_users_on_user_id_and_role_id" > create_table "refinery_settings", :force => true do |t| > t.string "name" > t.text "value" > t.boolean "destroyable", :default => true > t.string "scoping" > t.boolean "restricted", :default => false > t.string "form_value_type" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_settings", ["name"], :name => > "index_refinery_settings_on_name" > create_table "refinery_user_plugins", :force => true do |t| > t.integer "user_id" > t.string "name" > t.integer "position" > end > add_index "refinery_user_plugins", ["name"], :name => > "index_refinery_user_plugins_on_name" > add_index "refinery_user_plugins", ["user_id", "name"], :name => > "index_refinery_user_plugins_on_user_id_and_name", :unique => true > create_table "refinery_users", :force => true do |t| > t.string "username", :null => false > t.string "email", :null => false > t.string "encrypted_password", :null => false > t.datetime "current_sign_in_at" > t.datetime "last_sign_in_at" > t.string "current_sign_in_ip" > t.string "last_sign_in_ip" > t.integer "sign_in_count" > t.datetime "remember_created_at" > t.string "reset_password_token" > t.datetime "reset_password_sent_at" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "refinery_users", ["id"], :name => "index_refinery_users_on_id" > create_table "seo_meta", :force => true do |t| > t.integer "seo_meta_id" > t.string "seo_meta_type" > t.string "browser_title" > t.string "meta_keywords" > t.text "meta_description" > t.datetime "created_at", :null => false > t.datetime "updated_at", :null => false > end > add_index "seo_meta", ["id"], :name => "index_seo_meta_on_id" > add_index "seo_meta", ["seo_meta_id", "seo_meta_type"], :name => > "index_seo_meta_on_seo_meta_id_and_seo_meta_type" > end > > El viernes, 11 de abril de 2014 15:28:18 UTC+2, Colin Law escribió: > > On 11 April 2014 14:07, Antonio Arcos <elchatar...@gmail.com <javascript:>> > 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-ta...@googlegroups.com <javascript:>. > > To post to this group, send email to > > rubyonra...@googlegroups.com<javascript:>. > > > 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/ddb8f7ed-8969-4f75-94c4-3168643c8f12%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.