Displaying 4 results from an estimated 4 matches for "foo_url".
2007 Nov 28
3
overriding rest show route but not delete
hi, lets say routes.rb has
     map.resources :foo
and I want the show action to have a diffent url, so I add (after the  
above line)
     map.foo ''/bar/:id'', :controller => ''foo'', :action => ''show''
this works fine, including  foo_path( :id => "1")   =>  /bar/1
and <%= link_to ''Show'', foo %>
2007 Jun 06
10
Attachment_fu S3 uploads killing mongrel
...eeks and haven''t been
able to find any working solutions anywhere. I would greatly
appreciate any advice.
Code follows...
**foo_controller.rb**
  def create
    begin
      @foo = Foo.new(params[:foo])
      respond_to do |format|
        if @foo.save
          format.html { redirect_to foo_url(@foo) }
        else
          format.html { render :action => "new" }
        end
      end
    rescue
      render :action => "new"
    end
  end
**foo.rb**
after_create :save_logo
--~--~---------~--~----~------------~-------~--~----~
You received this message becaus...
2008 Jan 21
8
Polymorphic URL helpers documentation and fixes
Yesterday I answered a question regarding polymorphic URL helpers on Core ML
and noticed that the module has no documentation. I''ve documented it and
rewritten unit tests using Mocha. I also optimized some of the code slightly
(nothing major, though). The patch also includes two fixes by Geoff Buesing,
who has done awesome work in this area in the past.
2006 Mar 27
24
Mongrel Web Server 0.3.12 -- Pre-Release
Hello Everyone,
Mongrel is due for a 0.3.12 release which will feature some pretty insane
goodies for everyone.  There''s talk of IOWA support, lots of speed
improvements (including sendfile support), a great Configurator which makes
configuring Mongrel a snap (especially for framework implementers), and a
ton of debugging stuff.
WARNING
This is a pre-release announcement for the