Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Nugroho Herucahyono <me-AauUAPjQxszYtjvyW6yDsg <at> public.gmane.org>
Subject: Re: Tanya tentang Respond_with, Rails 3
Newsgroups: gmane.comp.lang.ruby.region.indonesia
Date: Tuesday 31st January 2012 05:59:28 UTC (over 4 years ago)
bisa dicoba begini?

def create
  @brand = Brand.new(params[:brand])
  if @brand.save
    flash[:notice] = "Brand has been added"
  else
    flash.now[:alert]="Failed to create Brand"
  end
  respond_with @brand do |format|
     format.html { render(:layout => "no_header") }
  end
end


[Non-text portions of this message have been removed]



------------------------------------

ID-Ruby
Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk segala
varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program yang dibuat
dengan Ruby (Ruby on Rails, JRuby on Rails, Merb)

<*> Follow Ruby Indonesia on Twitter
    http://twitter.com/rubyindonesia

<*> Kunjungi Situs Resmi Ruby Indonesia
    http://www.ruby-lang.org/id/

<*> Join Ruby Indonesia on Facebook
    http://rubyurl.com/QV48

<*> Join Ruby Indonesia on LinkedIn
    http://rubyurl.com/eh0i

<*> Kunjungi *arsip milis* id-ruby di
    http://groups.yahoo.com/group/id-ruby/messages
    http:[email protected]e.org/
    http://rubyurl.com/Q8DD
    http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia

<*> Baca peraturan id-ruby sebelum posting
    http://rubyurl.com/gay1
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/id-ruby/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/id-ruby/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
CD: 3ms