change core controller to user

This commit is contained in:
Wojciech Todryk 2011-07-22 21:58:59 +02:00
parent 08dc7ecdd3
commit 5ef1414979
6 changed files with 7 additions and 9 deletions

View file

@ -1,4 +1,4 @@
class CoreController < ApplicationController class UserController < ApplicationController
theme :theme_resolver theme :theme_resolver
layout "simple" layout "simple"

View file

@ -1,2 +0,0 @@
module CoreHelper
end

View file

@ -0,0 +1,2 @@
module UserHelper
end

View file

@ -2,9 +2,9 @@ Mailr::Application.routes.draw do
themes_for_rails themes_for_rails
get "core/login" get "user/login"
get "core/logout" get "user/logout"
post "core/authenticate" post "user/authenticate"
# The priority is based upon order of creation: # The priority is based upon order of creation:

View file

@ -1,2 +0,0 @@
<h1>Core#logout</h1>
<p>Find me in app/views/core/logout.html.erb</p>

View file

@ -11,7 +11,7 @@
<div class="message notice"><p><%= flash[:notice] %></p></div> <div class="message notice"><p><%= flash[:notice] %></p></div>
<% end %> <% end %>
</div> </div>
<form action="<%=url_for(:controller => 'core', :action => 'authenticate')%>" method="post" class="form login"> <form action="<%=url_for(:controller => 'user', :action => 'authenticate')%>" method="post" class="form login">
<div class="group wat-cf"> <div class="group wat-cf">
<div class="left"> <div class="left">
<label class="label right"><%= t(:email) %></label> <label class="label right"><%= t(:email) %></label>