Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
getting started with ActiveScaffold on Rails 2.3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sarah Allen  
View profile  
 More options Jul 1 2009, 1:11 pm
From: Sarah Allen <sa...@ultrasaurus.com>
Date: Wed, 1 Jul 2009 10:11:03 -0700 (PDT)
Local: Wed, Jul 1 2009 1:11 pm
Subject: getting started with ActiveScaffold on Rails 2.3
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?

Thanks,
Sarah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sarah Allen  
View profile  
 More options Jul 1 2009, 11:49 pm
From: Sarah Allen <sa...@ultrasaurus.com>
Date: Wed, 1 Jul 2009 20:49:34 -0700
Local: Wed, Jul 1 2009 11:49 pm
Subject: Re: getting started with ActiveScaffold on Rails 2.3
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.

Sarah

On Jul 1, 2009, at 10:11 AM, Sarah Allen wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergio Cambra .:: entreCables S.L. ::.  
View profile  
 More options Jul 2 2009, 3:41 am
From: "Sergio Cambra .:: entreCables S.L. ::." <ser...@entrecables.com>
Date: Thu, 2 Jul 2009 09:41:08 +0200
Local: Thurs, Jul 2 2009 3:41 am
Subject: Re: getting started with ActiveScaffold on Rails 2.3
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

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sarah Allen  
View profile  
 More options Jul 2 2009, 9:06 am
From: Sarah Allen <sa...@ultrasaurus.com>
Date: Thu, 2 Jul 2009 06:06:08 -0700
Local: Thurs, Jul 2 2009 9:06 am
Subject: Re: getting started with ActiveScaffold on Rails 2.3
I wrote this blog post about what I ended up doing:
http://www.ultrasaurus.com/sarahblog/2009/07/getting-started-with-act...

What does active_scaffold => true do when added to a route?

Thanks for the help,
Sarah

On Jul 2, 2009, at 12:41 AM, Sergio Cambra .:: entreCables S.L. ::.  
wrote:

http://www.ultrasaurus.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergio Cambra .:: entreCables S.L. ::.  
View profile  
 More options Jul 2 2009, 10:11 am
From: "Sergio Cambra .:: entreCables S.L. ::." <ser...@entrecables.com>
Date: Thu, 2 Jul 2009 16:11:15 +0200
Local: Thurs, Jul 2 2009 10:11 am
Subject: Re: getting started with ActiveScaffold on Rails 2.3
On Jueves, 2 de Julio de 2009 15:06:08 Sarah Allen escribió:

> I wrote this blog post about what I ended up doing:
> http://www.ultrasaurus.com/sarahblog/2009/07/getting-started-with-act...
>ffold/

> What does active_scaffold => true do when added to a route?

Adds routes for actions above standard CRUD.
It adds:
:collection => {:show_search => :get, :update_table => :get, :edit_associated
=> :get, :list => :get, :new_existing => :get},
:member => {:row => :get, :nested => :get, :edit_associated => :get,
:add_association => :get, :update_column => :post}

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »