Permalink
Browse files

post login/register redirect to transactions path and change in trans…

…action index ui
  • Loading branch information...
1 parent b45a9d9 commit 584dafc8ba1229dede2f1213a518c88e16922c8b Akshay Gupta(mac) committed Apr 21, 2012
Showing with 8 additions and 1 deletion.
  1. +7 −0 app/controllers/application_controller.rb
  2. +1 −1 app/views/transactions/index.html.erb
@@ -1,3 +1,10 @@
class ApplicationController < ActionController::Base
protect_from_forgery
+
+
+ private
+
+ def after_sign_in_path_for(user)
+ transactions_path
+ end
end
@@ -13,7 +13,7 @@
<% @transactions.each do |transaction| %>
<tr>
<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 %>
<%= transaction.created_at.strftime("%I:%M %p") %>
<% else %>

0 comments on commit 584dafc

Please sign in to comment.