Update... not so perfectly at first...
1. It was Category not Categories
ruby script/generate scaffold Admin::Category name:string
parent_id:integer lft:integer rgt:integer
ruby script/generate scaffold Category name:string parent_id:integer
lft:integer rgt:integer
2. I had to go into the admi
I had the same problem setting up my categories, so I wiped them out and
then scaffolded the admin before the frontend app and it worked
perfectly.
ruby script/generate scaffold Admin::Categories name:string
parent_id:integer lft:integer rgt:integer
ruby script/generate scaffold Categories na
in application.rb
comment "helper :all" and run again.
Like this:
class ApplicationController < ActionController::Base
#helper :all # include all helpers, all the time
end
On 10月8日, 上午5時51分, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm getting the next error:
>
> The name 'Admin::Use
> Rename problems_helper.rb to problems_helper.rb.bak in your app/
> helpers directory.
> Run your generate script.
> Rename problems_helper.rb.bak to its original name.
Yeah, now it went through.
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--
On Oct 8, 2:23 pm, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Thanks for the replies.
>
> > One way I found around it is to temporarily rename the helper with the
> > same name on the parent namespace before running the script/generate.
>
> Erol how did you actually renamed it? I tried and
Hi,
Thanks for the replies.
> One way I found around it is to temporarily rename the helper with the
> same name on the parent namespace before running the script/generate.
Erol how did you actually renamed it? I tried and complains about some
dependencies.
C:\InstantRails\rails_apps\test>rub
Erol Fornoles wrote:
> On Oct 8, 1:37?pm, "Robby Russell" <[EMAIL PROTECTED]> wrote:
>> Do you happen to have a model named Admin?
>
> Nvm what I just said earlier. It's a confirmed bug:
>
> http://rails.lighthouseapp.com/projects/8994/tickets/545
>
> One way I found around it is to temporarily
On Oct 8, 1:37 pm, "Robby Russell" <[EMAIL PROTECTED]> wrote:
> Do you happen to have a model named Admin?
Nvm what I just said earlier. It's a confirmed bug:
http://rails.lighthouseapp.com/projects/8994/tickets/545
One way I found around it is to temporarily rename the helper with the
same nam
Do you happen to have a model named Admin?
On Tue, Oct 7, 2008 at 6:51 PM, Erol Fornoles <[EMAIL PROTECTED]> wrote:
>
> On Oct 8, 5:51 am, comopasta Gr <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> I'm getting the next error:
>>
>> The name 'Admin::UsersHelper' is either already used in your applicat
On Oct 8, 5:51 am, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm getting the next error:
>
> The name 'Admin::UsersHelper' is either already used in your application
> or reserved by Ruby on Rails.
>
> When trying to run:
> ruby script/generate controller Admin::Users
>
> I've done somethi
i had the same problem. i am not sure what is causeing the error. what
i did was use a name different than users. i used
Admin::AccountsHelper which worked fine.
On Oct 7, 5:51 pm, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm getting the next error:
>
> The name 'Admin::UsersHelper' is e
11 matches
Mail list logo