prototype mobile interface
This commit is contained in:
14
app/controllers/m/posts_controller.rb
Normal file
14
app/controllers/m/posts_controller.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
module M
|
||||
class PostsController < ApplicationController
|
||||
layout "mobile"
|
||||
|
||||
def index
|
||||
@post_set = PostSets::Post.new(params[:tags], params[:page])
|
||||
@posts = @post_set.posts
|
||||
end
|
||||
|
||||
def show
|
||||
@post = Post.find(params[:id])
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user