Skip to content

Commit

Permalink
post login/register redirect to transactions path and change in trans…
Browse files Browse the repository at this point in the history
…action index ui
  • Loading branch information
Akshay Gupta(mac) committed Apr 21, 2012
1 parent b45a9d9 commit 584dafc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/controllers/application_controller.rb
@@ -1,3 +1,10 @@
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
protect_from_forgery protect_from_forgery


private

def after_sign_in_path_for(user)
transactions_path
end
end end
2 changes: 1 addition & 1 deletion app/views/transactions/index.html.erb
Expand Up @@ -13,7 +13,7 @@
<% @transactions.each do |transaction| %> <% @transactions.each do |transaction| %>
<tr> <tr>
<td><%= link_to "#{transaction.id}", transaction %></td> <td><%= link_to "#{transaction.id}", transaction %></td>
<td><%= "#{transaction.document.doc_file_name}" %></td> <td><%= link_to "#{transaction.document.doc_file_name}", transaction, :class => "white small" %></td>
<td><% if transaction.created_at.to_date == Date.today %> <td><% if transaction.created_at.to_date == Date.today %>
<%= transaction.created_at.strftime("%I:%M %p") %> <%= transaction.created_at.strftime("%I:%M %p") %>
<% else %> <% else %>
Expand Down

0 comments on commit 584dafc

Please sign in to comment.