This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hobo generate resource employee name:string account_number:integer pan_card:string address:text date_of_birth:date mobile:string nominee_one:string nominee_two:string | |
hobo generate resource rd rd_generation_id:integer period:integer amount:integer monthly_deposit:integer rate_of_interest:decimal current_amount:decimal | |
hobo generate resource fd fd_generation_id:integer period:integer amount:integer rate_of_interest:decimal current_amount:decimal | |
hobo generate resource ctd ctd_generation_id:integer period:integer monthly_deposit:integer rate_of_interest:decimal current_amount:decimal | |
hobo generate resource loan loan_generation_id:integer period:integer borrowed_amount:integer emi:decimal rate_of_interest:decimal paid_amount:decimal | |
hobo generate resource share share_generation_id:integer number_of_shares:integer rate_of_interest:decimal current_amount:decimal | |
../model/employee.rb | |
rds_count :integer, :default => 0, :null => false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails g scaffold member name:string account_number:integer pan_card:string address:string dob:date mobile:string nominee_one:string nominee_two:string | |
rails g scaffold rd member_id:integer start_date:date amount:decimal period:integer monthly_deposit:integer rate_of_interest:decimal current_amount:decimal | |
rails g scaffold fd member_id:integer start_date:date amount:decimal period:integer rate_of_interest:decimal current_amount:decimal | |
rails g scaffold ctd member_id:integer start_date:date amount:decimal rate_of_interest:decimal current_amount:decimal | |
rails g scaffold loan member_id:integer start_date:date amount:decimal period:integer monthly_emi:integer rate_of_interest:decimal current_amount_returned:decimal | |
rails g scaffold share member_id:integer no_of_share:integer per_share_value:decimal current_share_value:decimal | |
rails g scaffold rd_transaction rd_id:integer member_id:integer amount_deposited:decimal deposit_type:string | |
rails g scaffold ctd_transaction ctd_id:integer member_id:integer amount_de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
../controllers/rd_transactions.rb | |
def create | |
@rd_transaction = RdTransaction.new(params[:rd_transaction]) | |
@rd = Rd.find(params[:rd_id]) | |
@rd.update_attribute( :current_amount, (@rd.current_amount + @rd_transaction.amount_deposited)) | |
respond_to do |format| | |
if @rd_transaction.save | |
@rd.save | |
format.html { redirect_to @rd_transaction, notice: 'Rd transaction was successfully created.' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @rd_transaction, :html => { :class => 'form-horizontal' } do |f| %> | |
<div class="control-group"> | |
<%= f.label :rd_id, :class => 'control-label' %> | |
<div class="controls"> | |
<%= f.number_field :rd_id, :class => 'number_field' %> | |
</div> | |
</div> | |
<div class="control-group"> | |
<%= f.label :member_id, :class => 'control-label' %> | |
<div class="controls"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @rd_transaction, :html => { :class => 'form-horizontal' } do |f| %> | |
<div class="control-group"> | |
<%= f.label :member_id, :class => 'control-label' %> | |
<div class="controls"> | |
<%= f.select :member_id, Member.find(:all).collect { |s| [s.name,s.id]} ,:class => 'number_field' %> | |
</div> | |
</div> | |
<div class="control-group"> | |
<%= f.label :rd_id, :class => 'control-label' %> | |
<div class="controls"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
../views/rds/index.html | |
<td><%= Member.where(["id = ?",rd.member_id ]).select("name").to_s %></td> | |
output | |
1 #<ActiveRecord::Relation:0xb6672c9c> 2013-03-21 1000.0 12 132 0.01 6180.0 Thu, 21 Mar 2013 05:40:17 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://zapier.com/app/dashboard | |
http://ustav13.eventbrite.com/# | |
http://www.telapi.com/ | |
https://www.twilio.com/ | |
https://draftin.com/ | |
info@bmsceutsav.com | |
https://login.secureserver.net/index.php?app=wbe | |
http://utsav2013.sched.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8892318004 hemanth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
../app/controllers/modelname_html | |
format.pdf do | |
pdf = MemberPdf.new(@member, view_context) | |
send_data pdf.render, filename: | |
"member.pdf", | |
type: "application/pdf" | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-07-16T15:27:16.028174+00:00 app[web.1]: Processing by HelpsController#index as HTML | |
2013-07-16T15:27:16.036676+00:00 heroku[router]: at=info method=GET path=/helps host=ineedafavor.herokuapp.com fwd="106.51.152.196" dyno=web.1 connect=1ms service=358ms status=500 bytes=643 | |
2013-07-16T15:25:59.646082+00:00 heroku[router]: at=info method=GET path=/js/theme.js host=ineedafavor.herokuapp.com fwd="106.51.152.196" dyno=web.1 connect=0ms service=26ms status=304 bytes=0 | |
2013-07-16T15:25:59.804336+00:00 heroku[router]: at=info method=GET path=/img/signin_icos.png host=ineedafavor.herokuapp.com fwd="106.51.152.196" dyno=web.1 connect=0ms service=44ms status=304 bytes=0 | |
2013-07-16T15:27:22.050130+00:00 app[web.1]: Started GET "/favors/1" for 106.51.152.196 at 2013-07-16 15:27:22 +0000 | |
2013-07-16T15:27:22.085444+00:00 app[web.1]: | |
2013-07-16T15:27:22.085444+00:00 app[web.1]: | |
2013-07-16T15:27:22.087308+00:00 app[web.1]: Completed 404 Not Found in 15ms | |
2013-07-16T15:27:22.085444+00:00 app[web.1]: app/controllers/fa |
OlderNewer