removed /m/ codepath, added mobile override stylesheet
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -1,26 +0,0 @@
|
||||
module M
|
||||
class SessionsController < ApplicationController
|
||||
layout "mobile"
|
||||
|
||||
def new
|
||||
@user = User.new
|
||||
end
|
||||
|
||||
def create
|
||||
session_creator = SessionCreator.new(session, cookies, params[:name], params[:password], params[:remember])
|
||||
|
||||
if session_creator.authenticate
|
||||
redirect_to(params[:url] || session[:previous_uri] || m_posts_path)
|
||||
else
|
||||
redirect_to(new_m_session_path, :notice => "Password was incorrect.")
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
session.delete(:user_id)
|
||||
cookies.delete(:cookie_password_hash)
|
||||
cookies.delete(:user_name)
|
||||
redirect_to(m_posts_path, :notice => "You are now logged out.")
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user