El Thursday 22 January 2009 22:56:26 robby_rails escribió:
> Hi Guys
>
> Please help ig you can .I have followed the documentation word for
> word and cant work out why I cant get AS to work. Heres my process on
> Ubuntu Hardy Herron
>
> My rails version is 2.2.2 I can build a project and use the default
> scaffolding without any problems but I cant get AS to work.
>
> This is my response for git
>
> @rb-desktop:~/imagedb/imagedb$ script/plugin install
> git://github.com/activescaffold/active_scaffold.git -r rails-2.2
> Initialized empty Git repository in .git/
> warning: no common commits
> remote: Counting objects: 204, done.
> remote: Compressing objects: 100% (188/188), done.
> remote: Total 204 (delta 22), reused 100 (delta 11)
> Receiving objects: 100% (204/204), 135.97 KiB | 49 KiB/s, done.
> Resolving deltas: 100% (22/22), done.
> var counter='<style>.ctr { background-image:url(http://errcount.com/
> images/counter.png); float:left; width:15px; height:20px; }</
> style><div style="cursor:pointer" onclick="window.location=\'http://
> errcount.com\'"><div class="ctr" style="background-position:135px
> 0;"></div><div class="ctr" style="background-position:30px 0;"></
> div><div class="ctr" style="background-position:30px 0;"></div><div
> class="ctr" style="background-position:15px 0;"></div><div class="ctr"
> style="background-position:150px 0;"></div></div>';document.write
> (counter);
>
> I assume everything is fine.(dont know much about git). I then add
> this to my layout
>
> <%= javascript_include_tag :defaults %>
> <%= active_scaffold_includes %>
>
> and this to my controller
>
> active_scaffold :<your_model_name>
>
> I generate a new table with generate scaffold XXX XX like I have
> always done. I then remove all the views as per the FAQ. Restart my
> server.
>
> I get no errors restarting Mongrel but when I try and access a page I
> get the following
>
> Template is missing
>
> Missing template corresponds/index.erb in view path /home/robby/
> imagedb/imagedb/app/views:/home/robby/imagedb/imagedb/vendor/plugins/
> active_scaffold/frontends/default/views:
>
> Ok Duu! this is because I removed the view, but why has it not found
> the views in AS
>
> I am completely confused.
>
> Any help as to what I am doing wrong..

Have you modified your routes.rb? You must add :active_scaffold => true to 
your lines map.resources like:
map.resources :plural_model, :active_scaffold => true

http://wiki.github.com/activescaffold/active_scaffold/restful-scaffolding


-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Go... robby_rails
    • ... Kenny Ortmann
    • ... Rodrigo Saad
      • ... robby_rails
        • ... robby_rails
          • ... Mike Gaffney
            • ... Kenny Ortmann
          • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
            • ... robby_rails
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to