Sri,

My User Controller looks like this:

===============================

class UserController < ApplicationController
  active_scaffold :user

  def viewmany
    #do nothing
  end
end

===============================

My user view directory contents look like this:

 Directory of E:\Workspace\YellowPages\FileSharing\app\views\user

09/01/2008  06:32 PM    <DIR>          .
09/01/2008  06:32 PM    <DIR>          ..
09/01/2008  06:32 PM               238 viewmany.html.erb

===============================

Also, I am using JFernandez's forked version of active_scaffold as I
am working on Rails 2.1

===============================

Within viewmany.html.erb, I am rendering scaffolds of 2 other
controllers. The content of viewmany.html.erb is:

<div id="UserDropScaffold" style="width: 600px; height: 480px;">
    <%= render :active_scaffold => 'drop', :constraints => { :user_id
=> '1'}, :label => 'Drops by User_ID 1' %>
    <%= render :active_scaffold => 'request'%>
</div>

===============================

Let me stress on this that when I make the user controller NOT use
active_scaffold, the view is rendered perfectly.

===============================


Hope this helps. I wonder whats going wrong. Am I doing a silly
mistake somewhere?


Chirantan

On Sep 1, 9:14 pm, Sri Sri <[EMAIL PROTECTED]> wrote:
> Chirantan,
>
> A part of you controller code and the list of files under views/ would
> help. YOu might want to use 'ls -l' or 'dir' to get the list.
>
> Sri
>
> Chirantan wrote:
> > Hi,
>
> > I am trying to render a view called 'viewmany' from a 'user'
> > controller which uses active scaffold. However when I hit the url /
> > user/viewmany, I get NoMethodError. The method 'viewmany' is defined
> > in the user controller and it's view is also present.
>
> > Now, when I make the controller NOT use active_scaffold, the view is
> > rendered perfectly.
>
> > What could be the reason that I am getting this error? How do I fix
> > it?
>
> > Chirantan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to