X-Git-Url: https://git.r.bdr.sh/rbdr/grita/blobdiff_plain/c194753dd738f88ce42442dc1510ac29980893e7..4ef7d69d69de5799c7176cf88fce2fbb2d471c25:/grita.rb?ds=sidebyside diff --git a/grita.rb b/grita.rb index 76f1c93..180fe19 100644 --- a/grita.rb +++ b/grita.rb @@ -17,8 +17,7 @@ get '/' do end post '/' do - @grito = Grito.new(:title => params[:title], :text => params[:text]) - @grito.save + @grito = Grito.create(:title => params[:title], :text => params[:text]) haml :index end