search for: mailscontroller

Displaying 2 results from an estimated 2 matches for "mailscontroller".

Did you mean: mailcontroller
2005 Oct 21
8
Wrong number of arguments (1 for 0) on routes.rb
...thought about just creating the controller manually (without using script/generate), since that didn''t seem to work, I created a dummy table in my DB and used the usual procedure to generate scaffold code. Then I modified the controller to have only two methods, send and compose: class MailsController < ApplicationController def compose render_text ''composing'' end def send render_text ''sending'' end end And I have these routes defined: map.connect _(''mail/:id/send''), :controller => ''mails'', :action =&...
2006 Apr 07
1
Help... Ajax scaffold problems
...;, :action => ''list'' %> class DataEntryController < ApplicationController def search # search action calls component controllers redirect_to :controller=>''emails'', :action => ''list'' end end class MailsController < ApplicationController def list # I have confirmed the redirect works - it looks like the code in here runs # but no screen update happens for the component. # I want the code in here to update the div for mails, but # I don''t know what code th...