class TagsController
Public Instance Methods
create()
click to toggle source
POST /tags/create
# File app/controllers/tags_controller.rb, line 15 def create user = User.find_by_name(params[:name]) date = Time.now.to_date 1.upto 10 do |t| break if user.create_tags(date - t).is_a? Array end redirect_to user_path(user.name) end
index()
click to toggle source
GET /tags
# File app/controllers/tags_controller.rb, line 5 def index render 'show' end
show()
click to toggle source
GET /tags/1 GET /tags/1.json
# File app/controllers/tags_controller.rb, line 11 def show end