El Tuesday 27 January 2009 14:54:41 DrewOnTheWall escribió:
> I have the same problem - I am trying to use this from the default
> 'script/generate scaffold Recipe'.  I tried to remove the app/views/
> recipes folder and I receive a 'Template is missing:  Missing template
> recipes/index.erb in view path' error.

You should use script/generate resource when you don't need the views and 
methods generated by scaffold

>
> I have added the following to my RecipesController
>   layout 'admin'
>   active_scaffold :recipe
>
> I have added a layout called 'admin'...
> I have added the includes to the 'admin' layout as follows:
>   <%= javascript_include_tag :defaults %>
>   <%= active_scaffold_includes %>
>
> What is the piece of 'default scaffold' code that 'breaks'
> ActiveScaffold???
>
> On Jan 9, 6:27 am, DJ <[email protected]> wrote:
> > Hi
> >     Thoraxe
> >                  I was adding the lines on a previousscaffoldcode
> > and there was already views file created byscaffoldcode, so i was
> > not getting  the desired result, once i removed the previousscaffold
> > code and started freshly, i got what i wanted.
> >
> > DJ
> > Thanks for the reply
> >
> > On Jan 8, 7:35 pm, thoraxe <[email protected]> wrote:
> > > DJ,
> > >
> > > Can you post your entire application.rhtml from your app/views/layouts
> > > folder?
> > >
> > > I'm wondering if perhaps the <%= yield %> line is missing.
> > >
> > > On Jan 8, 7:32 am, DJ <[email protected]> wrote:
> > > > Hi
> > > >   Group
> > > >       I installed the activescaffoldin my rails application by
> > > > cloning the git  git://github.com/activescaffold/active_scaffold.git
> > > > and added the lines like
> > > >
> > > >   1)   <%= javascript_include_tag :defaults %>
> > > >
> > > >        <%= active_scaffold_includes %> in my application.html.erb
> > > >
> > > >   2) My User controller    looks like this->
> > > >      class UserController < ApplicationController
> > > >              active_scaffold :user do |config|
> > > >                 config.theme = :blue
> > > >                 config.list.columns =
> > > > [:id, :login, :email, :created_at, :updated_at]
> > > >                config.columns[:id].inplace_edit = true
> > > >            end
> > > >       end
> > > >
> > > >  Indeed the javascripts are added in the views, if i do the view page
> > > > source i can see javascript files are added ->
> > > > .......................
> > > > .......................
> > > > <script src="/javascripts/prototype.js?1231356849" type="text/
> > > > javascript"></script>
> > > > <script src="/javascripts/effects.js?1231356849" type="text/
> > > > javascript"></script>
> > > > <script src="/javascripts/dragdrop.js?1231356849" type="text/
> > > > javascript"></script>
> > > > <script src="/javascripts/controls.js?1231356849" type="text/
> > > > javascript"></script>
> > > > <script src="/javascripts/application.js?1231356849" type="text/
> > > > javascript"></script>
> > > > <script src="/javascripts/active_scaffold/default/rico_corner.js?
> > > > 1231359054" type="text/javascript"></script>
> > > > <script
> > > > src="/javascripts/active_scaffold/default/form_enhancements.js?
> > > > 1231359054" type="text/javascript"></script>
> > > > <script src="/javascripts/active_scaffold/default/active_scaffold.js?
> > > > 1231359054" type="text/javascript"></script>
> > > > <script src="/javascripts/active_scaffold/default/dhtml_history.js?
> > > > 1231359054" type="text/javascript"></script>
> > > > <link href="/stylesheets/active_scaffold/default/stylesheet.css?
> > > > 1231359054" media="screen" rel="stylesheet" type="text/css" />
> > > > <!--[if IE]><link href="/stylesheets/active_scaffold/default/
> > > > stylesheet-ie.css?1231359054" media="screen" rel="stylesheet"
> > > > type="text/css" /><![endif]-->
> > > >
> > > > ...........................
> > > > ...........................
> > > >
> > > > But thelayoutdid not changed at all, What am i missing?
> > > >
> > > > Where are the other functionalities like search, pagination etc? In
> > > > fact the necessary files are there in vendor/plugins/active_scaffold
> > > > directory.
> > > >
> > > > I am using rails 2.2.2.
> > > >
> > > > DJ
> > > > Thanks in advance
>
> 


-- 
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
-~----------~----~----~----~------~----~------~--~---

  • Ac... DJ
    • ... thoraxe
      • ... DJ
        • ... DrewOnTheWall
          • ... Kenny Ortmann
          • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to