Error trying to get to admin setting screen.

2 views
Skip to first unread message

Tim Uckun

unread,
Apr 23, 2010, 6:42:51 AM4/23/10
to skyli...@googlegroups.com
Default install. Created a page as per the last email.

Clicking on the admin->settings link I get the following error.

NoMethodError in Skyline/settingsController#index

undefined method `page_names' for nil:NilClass

RAILS_ROOT: /usr/local/home/tim/scratch/skyline

Processing Skyline::SettingsController#index (for 127.0.0.1 at
2010-04-23 22:42:54) [GET]
Skyline::User Load (6.0ms) SELECT * FROM "skyline_users" WHERE
("skyline_users"."id" = 1) ORDER BY email ASC LIMIT 1
Skyline::Right Load (1.7ms) SELECT DISTINCT r.* FROM
skyline_rights AS r, skyline_grants AS g JOIN
skyline_rights_skyline_roles AS rr ON rr.role_id = g.role_id WHERE
g.user_id = 1 AND r.id = rr.right_id

NoMethodError (undefined method `page_names' for nil:NilClass):
skylinecms (3.0.8)
app/controllers/skyline/settings_controller.rb:10:in `index'
skylinecms (3.0.8)
app/controllers/skyline/application_controller.rb:189:in
`perform_action'
skylinecms (3.0.8)
lib/./app/middleware/skyline/sprockets_middleware.rb:60:in `call'
skylinecms (3.0.8)
lib/./app/middleware/skyline/flash_session_cookie_middleware.rb:14:in
`call'

Rendered rescues/_trace (38.2ms)
Rendered rescues/_request_and_response (0.4ms)
Rendering rescues/layout (internal_server_error)


--
Subscription settings: http://groups.google.com/group/skylinecms/subscribe?hl=en

Luis Doubrava

unread,
Apr 23, 2010, 6:54:58 AM4/23/10
to skyli...@googlegroups.com
Hi Tim,

The error your seeing is because you dont have a settings model yet:

I ment to put that into the getting started but never got to it. You
can find the code for the migration and model on
http://www.skylinecms.nl/documentation/guides/how_to_create_content_elements

look for settings.rb

Cheers,
Luis

Tim Uckun

unread,
Apr 26, 2010, 7:43:22 PM4/26/10
to skyli...@googlegroups.com
On Fri, Apr 23, 2010 at 10:54 PM, Luis Doubrava <lu...@digitpaint.nl> wrote:
> Hi Tim,
>
> The error your seeing is because you dont have a settings model yet:
>
> I ment to put that into the getting started but never got to it. You can
> find the code for the migration and model on
> http://www.skylinecms.nl/documentation/guides/how_to_create_content_elements
>
> look for settings.rb


Are there any built in content types available? I see a couple on the
screen cast but nothing is installed on the default setup.

Flurin Egger

unread,
Apr 27, 2010, 2:07:49 AM4/27/10
to skyli...@googlegroups.com
Hi Tim,

There are no default contenttypes installed by default. Check out the
demo site on github for some examples. You can see the examples from
Github in action on http://demo.skylinecms.nl

You can find more information on how to create your own contenttypes
in the guides on skylinecms.nl.

Regards,
Flurin
Reply all
Reply to author
Forward
0 new messages