Class: TagsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tags_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Instance Method Details

#showObject


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

def show
  respond_to do |format|
    format.html
  end
end

#updateObject


15
16
17
18
19
20
21
22
23
24
# File 'app/controllers/tags_controller.rb', line 15

def update
  respond_to do |format|
    if @tag.update(params[:tag])
      flash[:notice] = 'Tag was successfully updated.'
      format.html { redirect_to(@tag_group) }
    else
      format.html { render action: 'edit' }
    end
  end
end