Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # GET /restaurants/new
- def new
- @extra_css = ['new_restaurant']
- respond_with(@restaurant = Restaurant.new)
- end
- # POST /restaurants
- def create
- @restaurant = Restaurant.new(params[:restaurant])
- respond_to do |format|
- if @restaurant.save
- format.html { redirect_to(@restaurant, :notice => _('Restaurant was successfully created.')) }
- else
- format.html { render :action => "new" }
- end
- end
- end
Add Comment
Please, Sign In to add comment