Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'user' tried to access 'refinery/inquiries/inquiries' but was rejected #85

Closed
johanb opened this issue May 15, 2012 · 4 comments
Closed

Comments

@johanb
Copy link

johanb commented May 15, 2012

Processing by Refinery::Inquiries::Admin::InquiriesController#index as HTML
  Parameters: {"locale"=>:en}
  Refinery::Role Load (0.2ms)  SELECT "refinery_roles".* FROM "refinery_roles" WHERE "refinery_roles"."title" = 'Refinery' LIMIT 1
  Refinery::User Load (0.2ms)  SELECT "refinery_users".* FROM "refinery_users" INNER JOIN "refinery_roles_users" ON "refinery_users"."id" = "refinery_roles_users"."user_id" WHERE "refinery_roles_users"."role_id" = 1
  Refinery::User Load (0.1ms)  SELECT "refinery_users".* FROM "refinery_users" WHERE "refinery_users"."id" = 1 LIMIT 1
  Refinery::UserPlugin Load (0.2ms)  SELECT "refinery_user_plugins".* FROM "refinery_user_plugins" WHERE "refinery_user_plugins"."user_id" = 1 ORDER BY position ASC
  Refinery::Role Load (0.1ms)  SELECT "refinery_roles".* FROM "refinery_roles" INNER JOIN "refinery_roles_users" ON "refinery_roles"."id" = "refinery_roles_users"."role_id" WHERE "refinery_roles_users"."user_id" = 1
'admin' tried to access 'refinery/inquiries/inquiries' but was rejected.
  Refinery::Page Load (0.1ms)  SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."menu_match" = '^/404$' LIMIT 1
  Refinery::PagePart Load (1.1ms)  SELECT "refinery_page_parts".* FROM "refinery_page_parts" WHERE "refinery_page_parts"."refinery_page_id" IN (2) ORDER BY position ASC
  Refinery::PagePart::Translation Load (0.2ms)  SELECT "refinery_page_part_translations".* FROM "refinery_page_part_translations" WHERE "refinery_page_part_translations"."refinery_page_part_id" IN (3)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/_content_page.html.erb (0.8ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-pages-2.0.4/app/views/refinery/pages/show.html.erb within layouts/refinery/admin (4.1ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/_html_tag.html.erb (0.1ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/admin/_javascripts.html.erb (1.6ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/admin/_head.html.erb (5.9ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/_site_bar.html.erb (1.0ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/admin/_menu.html.erb (2.7ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/_no_script.html.erb (0.3ms)
  Rendered /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-core-2.0.4/app/views/refinery/_message.html.erb (0.1ms)
Filter chain halted as :restrict_controller rendered or redirected

Steps to reproduce:

  1. $ refinerycms rickrockstar
  2. add gem 'refinerycms-inquiries', '~> 2.0.2' to Gemfile
  3. $ bundle install
  4. $ rails g refinery:inquiries
  5. $ rake db:migrate
  6. $ rake db:seed
  7. navigate to http://localhost:3000/refinery/inquiries
@johanb
Copy link
Author

johanb commented May 15, 2012

Versions:

  • Ruby: 1.9.3-p125
  • actionmailer (3.2.3)
  • actionpack (3.2.3)
  • activemodel (3.2.3)
  • activerecord (3.2.3)
  • activeresource (3.2.3)
  • activesupport (3.2.3)
  • acts_as_indexed (0.7.8)
  • arel (3.0.2)
  • awesome_nested_set (2.1.3)
  • babosa (0.3.7)
  • bcrypt-ruby (3.0.1)
  • builder (3.0.0)
  • bundler (1.1.0)
  • coffee-rails (3.2.2)
  • coffee-script (2.2.0)
  • coffee-script-source (1.3.2)
  • devise (2.0.4)
  • dragonfly (0.9.12)
  • erubis (2.7.0)
  • execjs (1.3.2)
  • filters_spam (0.3)
  • friendly_id (4.0.5)
  • globalize3 (0.2.0)
  • hike (1.2.1)
  • i18n (0.6.0)
  • journey (1.0.3)
  • jquery-rails (2.0.2)
  • json (1.7.3)
  • mail (2.4.4)
  • mime-types (1.18)
  • multi_json (1.3.5)
  • orm_adapter (0.0.7)
  • paper_trail (2.6.3)
  • polyglot (0.3.3)
  • rack (1.4.1)
  • rack-cache (1.2)
  • rack-ssl (1.3.2)
  • rack-test (0.6.1)
  • rails (3.2.3)
  • railties (3.2.3)
  • rake (0.9.2.2)
  • rdoc (3.12)
  • refinerycms (2.0.4)
  • refinerycms-authentication (2.0.4)
  • refinerycms-core (2.0.4)
  • refinerycms-dashboard (2.0.4)
  • refinerycms-i18n (2.0.0)
  • refinerycms-images (2.0.4)
  • refinerycms-inquiries (2.0.2)
  • refinerycms-pages (2.0.4)
  • refinerycms-resources (2.0.4)
  • refinerycms-settings (2.0.1)
  • routing-filter (0.3.1)
  • sass (3.1.18)
  • sass-rails (3.2.5)
  • seo_meta (1.3.0)
  • sprockets (2.1.3)
  • sqlite3 (1.3.6)
  • thor (0.14.6)
  • tilt (1.3.3)
  • treetop (1.4.10)
  • truncate_html (0.5.5)
  • tzinfo (0.3.33)
  • uglifier (1.2.4)
  • warden (1.1.1)
  • will_paginate (3.0.3)

@ugisozols
Copy link
Member

Fixed by 160b581.

@parndt this screams for new version.

@johanb
Copy link
Author

johanb commented May 15, 2012

👍

❤️ @ugisozols

@parndt
Copy link
Member

parndt commented May 15, 2012

New version 2.0.3 is out
Thanks @johanb @ugisozols

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants