Account Options

  1. Sign in
Google Groups Home
« Groups Home
Scaffolding in a sub-directory on Rails 2.x
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
 
chrisnzi  
View profile  
 More options Aug 6 2009, 4:24 pm
From: chrisnzi <chrism...@gmail.com>
Date: Thu, 6 Aug 2009 13:24:02 -0700 (PDT)
Local: Thurs, Aug 6 2009 4:24 pm
Subject: Scaffolding in a sub-directory on Rails 2.x
Hi, I'm trying to make an app using rails 2.x, but when I try to
generate scaffold it messes up with several errors.  For example, I
want to make an scaffold this way, localhost:3000/admin/publisher, but
I don't know how I can generate it;

I was trying to generate it by ./script/generate scaffold 'admin/
publisher' name:string, but I doesn't work.... It gave me an error
that tells me publishers database doesn't exists!!!

Can anyone help me into this thing...??? How am I supposed to make it
work???

Thanks in advance!

Christian


 
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.
Sijo Kg  
View profile  
 More options Aug 7 2009, 3:44 am
From: Sijo Kg <rails-mailing-l...@andreas-s.net>
Date: Fri, 7 Aug 2009 09:44:16 +0200
Local: Fri, Aug 7 2009 3:44 am
Subject: Re: Scaffolding in a sub-directory on Rails 2.x
Hi
   you can do like
./script/generate scaffold Admin::Publisher

    Here the model be namespaced And if you need only controllers and
view you can do it seperately

./script/generate controller Admin::Publisher
./script/generate model Publisher

     And edit routes.rb

map.namespace(:admin) do |admin|
       map.resources :publishers
end

Sijo
--
Posted via http://www.ruby-forum.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.
Christian Ricardo Marroquín  
View profile  
 More options Aug 7 2009, 2:20 pm
From: Christian Ricardo Marroquín <chrism...@gmail.com>
Date: Fri, 7 Aug 2009 12:20:48 -0600
Local: Fri, Aug 7 2009 2:20 pm
Subject: Re: [Rails] Re: Scaffolding in a sub-directory on Rails 2.x

Thanks Sijo, I followed your instructions but there's another error I got
Routing Error

No route matches "/admin/publisher" with {:method=>:get}

Do you know a way to get rid of it...??

Thanks

2009/8/7 Sijo Kg <rails-mailing-l...@andreas-s.net>


 
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.
Sijo Kg  
View profile  
 More options Aug 8 2009, 12:46 am
From: Sijo Kg <rails-mailing-l...@andreas-s.net>
Date: Sat, 8 Aug 2009 06:46:22 +0200
Local: Sat, Aug 8 2009 12:46 am
Subject: Re: Scaffolding in a sub-directory on Rails 2.x
Hi

   Not only doing the above solves all..You have to edit a lot of
places. Rather than I explain all these and grab a lot more spaces here
you better read this
  Read section Namespaced Routes in

http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-fir...

Sijo
--
Posted via http://www.ruby-forum.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.
James West  
View profile  
 More options Aug 8 2009, 2:57 am
From: James West <rails-mailing-l...@andreas-s.net>
Date: Sat, 8 Aug 2009 08:57:59 +0200
Local: Sat, Aug 8 2009 2:57 am
Subject: Re: Scaffolding in a sub-directory on Rails 2.x

Sijo Kg wrote:
> Hi

>    Not only doing the above solves all..You have to edit a lot of
> places. Rather than I explain all these and grab a lot more spaces here
> you better read this
>   Read section Namespaced Routes in

> http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-fir...

> Sijo

There is a totally superb blog on this that I use all the time
http://icebergist.com/posts/restful-admin-namespaced-controller-using...
Clear, concise and it works!
--
Posted via http://www.ruby-forum.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 »