Class: SuggestionsController

Inherits:
CartoonistController
  • Object
show all
Defined in:
app/controllers/suggestions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



4
5
6
7
# File 'app/controllers/suggestions_controller.rb', line 4

def create
  Suggestion.create_suggestion request.remote_ip, params
  redirect_to "/"
end

#newObject



9
10
11
12
13
# File 'app/controllers/suggestions_controller.rb', line 9

def new
  cache_page_as "suggestions/new.#{cache_type}.html" do
    render
  end
end