rails 3.2.2

195 views
Skip to first unread message

Richard Zheng

unread,
Mar 19, 2012, 6:02:07 AM3/19/12
to actives...@googlegroups.com
Hi,

Trying with rails 3.2.2 with a new rails app from scratch. Got some issues here. Please advise.

Did the following,
ActionView::Template::Error (undefined local variable or method `active_scaffold_includes' for #<#<Class:0x3c164e0>:0x3c12fe8>):
3: <head>
4: <title>Rails3</title>
5: <%= javascript_include_tag :defaults %>
6: <%= active_scaffold_includes %>
7:
8: </head>
9: <body>
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___91358868_31425700

Andrey Novikov

unread,
Mar 19, 2012, 7:38:06 PM3/19/12
to actives...@googlegroups.com
If your app using assets pipeline (new app from scratch using!), you shouldn't use `active_scaffold_includes` in your layout, instead you need to add those strings to assets files (according to https://github.com/activescaffold/active_scaffold/wiki/Getting-Started ):

in Rails.root/app/assets/stylesheets/application.css

*= require active_scaffold

in Rails.root/app/assets/javascripts/application.js

//= require active_scaffold

Richard Zheng

unread,
Mar 20, 2012, 5:24:52 AM3/20/12
to actives...@googlegroups.com
That's exactly the problem. Got it working. Thanks,


--
You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/vEw9EvUYd2sJ.
To post to this group, send email to actives...@googlegroups.com.
To unsubscribe from this group, send email to activescaffol...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.

Reply all
Reply to author
Forward
0 new messages