edited views/layouts/tasks.html.erb, adding the javascript include and
active_scaffold_includes lines to the bottom of the head section:
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Tasks: <%= controller.action_name %></title>
<%= stylesheet_link_tag 'scaffold' %>
<%= javascript_include_tag :defaults %>
<%= active_scaffold_includes %>
</head>
then modified tasks_controller.rb adding:
active_scaffold :task
then started the server, went to http://localhost:3000/tasks and saw
nothing. The tutorial seems to imply that I would see something, but
maybe I need to configure something...
Can someone please point me in the right direction?
The problem was that the regular scaffold was defining all of the
controller actions, so that ActiveScaffold wasn't getting a chance to
do anything... seems there are some basic concepts missing from that
intro tutorial. I'll try to write up a little more detail on what
I've learned in a blog post, but wanted to let you all know that I
found an answer to my question.
> Just started exploring ActiveScaffold today with Rails 2.3.2. I'm not
> seeing any ActiveScaffold UI... am I missing something?
> Here's what I did:
>> rails active_scaffold
>> cd active_scaffold
>> ./script/generate scaffold Task title:string notes:text
>> complete:boolean
>> rake db:migrate
>> script/plugin install git://github.com/activescaffold/ >> active_scaffold.git
> edited views/layouts/tasks.html.erb, adding the javascript include and
> active_scaffold_includes lines to the bottom of the head section:
> <head>
> <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
> <title>Tasks: <%= controller.action_name %></title>
> <%= stylesheet_link_tag 'scaffold' %>
> <%= javascript_include_tag :defaults %>
> <%= active_scaffold_includes %>
> </head>
> then modified tasks_controller.rb adding:
> active_scaffold :task
> then started the server, went to http://localhost:3000/tasks and saw
> nothing. The tutorial seems to imply that I would see something, but
> maybe I need to configure something...
> Can someone please point me in the right direction?
On Jueves, 2 de Julio de 2009 05:49:34 Sarah Allen escribió:
> The problem was that the regular scaffold was defining all of the
> controller actions, so that ActiveScaffold wasn't getting a chance to
> do anything... seems there are some basic concepts missing from that
> intro tutorial. I'll try to write up a little more detail on what
> I've learned in a blog post, but wanted to let you all know that I
> found an answer to my question.
You should add :active_scaffold => true to you routes:
map.resources :<your_model_name>, :active_scaffold => true
Also you will have to install render_component for nested scaffolds
./script/plugin install git://github.com/ewildgoose/render_component.git
> On Jul 1, 2009, at 10:11 AM, Sarah Allen wrote:
> > Just started exploring ActiveScaffold today with Rails 2.3.2. I'm not
> > seeing any ActiveScaffold UI... am I missing something?
> > edited views/layouts/tasks.html.erb, adding the javascript include and
> > active_scaffold_includes lines to the bottom of the head section:
> > <head>
> > <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
> > <title>Tasks: <%= controller.action_name %></title>
> > <%= stylesheet_link_tag 'scaffold' %>
> > <%= javascript_include_tag :defaults %>
> > <%= active_scaffold_includes %>
> > </head>
> > then modified tasks_controller.rb adding:
> > active_scaffold :task
> > then started the server, went to http://localhost:3000/tasks and saw
> > nothing. The tutorial seems to imply that I would see something, but
> > maybe I need to configure something...
> > Can someone please point me in the right direction?
> On Jueves, 2 de Julio de 2009 05:49:34 Sarah Allen escribió:
>> The problem was that the regular scaffold was defining all of the
>> controller actions, so that ActiveScaffold wasn't getting a chance to
>> do anything... seems there are some basic concepts missing from that
>> intro tutorial. I'll try to write up a little more detail on what
>> I've learned in a blog post, but wanted to let you all know that I
>> found an answer to my question.
> You should add :active_scaffold => true to you routes:
> map.resources :<your_model_name>, :active_scaffold => true
> Also you will have to install render_component for nested scaffolds
> ./script/plugin install git://github.com/ewildgoose/ > render_component.git
>> Sarah
>> On Jul 1, 2009, at 10:11 AM, Sarah Allen wrote:
>>> Just started exploring ActiveScaffold today with Rails 2.3.2. I'm
>>> not
>>> seeing any ActiveScaffold UI... am I missing something?
>>> Here's what I did:
>>>> rails active_scaffold
>>>> cd active_scaffold
>>>> ./script/generate scaffold Task title:string notes:text
>>>> complete:boolean
>>>> rake db:migrate
>>>> script/plugin install git://github.com/activescaffold/
>>>> active_scaffold.git
>>> edited views/layouts/tasks.html.erb, adding the javascript include
>>> and
>>> active_scaffold_includes lines to the bottom of the head section:
>>> <head>
>>> <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
>>> <title>Tasks: <%= controller.action_name %></title>
>>> <%= stylesheet_link_tag 'scaffold' %>
>>> <%= javascript_include_tag :defaults %>
>>> <%= active_scaffold_includes %>
>>> </head>
>>> then modified tasks_controller.rb adding:
>>> active_scaffold :task
>>> then started the server, went to http://localhost:3000/tasks and saw
>>> nothing. The tutorial seems to imply that I would see something,
>>> but
>>> maybe I need to configure something...
>>> Can someone please point me in the right direction?
> On Jul 2, 2009, at 12:41 AM, Sergio Cambra .:: entreCables S.L. ::.
> wrote:
> > On Jueves, 2 de Julio de 2009 05:49:34 Sarah Allen escribió:
> >> The problem was that the regular scaffold was defining all of the
> >> controller actions, so that ActiveScaffold wasn't getting a chance to
> >> do anything... seems there are some basic concepts missing from that
> >> intro tutorial. I'll try to write up a little more detail on what
> >> I've learned in a blog post, but wanted to let you all know that I
> >> found an answer to my question.
> > You should add :active_scaffold => true to you routes:
> > map.resources :<your_model_name>, :active_scaffold => true
> > Also you will have to install render_component for nested scaffolds
> > ./script/plugin install git://github.com/ewildgoose/
> > render_component.git
> >> Sarah
> >> On Jul 1, 2009, at 10:11 AM, Sarah Allen wrote:
> >>> Just started exploring ActiveScaffold today with Rails 2.3.2. I'm
> >>> not
> >>> seeing any ActiveScaffold UI... am I missing something?
> >>> edited views/layouts/tasks.html.erb, adding the javascript include
> >>> and
> >>> active_scaffold_includes lines to the bottom of the head section:
> >>> <head>
> >>> <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
> >>> <title>Tasks: <%= controller.action_name %></title>
> >>> <%= stylesheet_link_tag 'scaffold' %>
> >>> <%= javascript_include_tag :defaults %>
> >>> <%= active_scaffold_includes %>
> >>> </head>
> >>> then modified tasks_controller.rb adding:
> >>> active_scaffold :task
> >>> then started the server, went to http://localhost:3000/tasks and saw
> >>> nothing. The tutorial seems to imply that I would see something,
> >>> but
> >>> maybe I need to configure something...
> >>> Can someone please point me in the right direction?