[Rails] body of email not displaying with attachments in rails2.3.5

2013-09-29 Thread pradeep83 . achu
I am sending an email through my application to other user's gmail id. I am receiving email and it works fine without attachment. But when I attach a file, the mail which users receive contain subject and attachments only. The body part is not displaying in the mail. In the controller I am passi

[Rails] URL issue in rails routing

2013-09-09 Thread pradeep83 . achu
Hi, I have a link as below <%= link_to member.full_name,{:controller => "reports",:action => "student_details", :stud_id => member.id,:vehicle_id=>@vehicle,:type=>@type,:month=>@start_date,:category=>@category } %> In the routes.rb I have defined as map.connect"/reports/studen

[Rails] append hardcoded value in rails2 f.select_tag

2013-09-09 Thread pradeep83 . achu
Hi, I have a dropdown in my rails partial which onchange calling a remote function...I am using rails2.3 verison.. In the drop down I am retreiving list of students like this.. <%= select :students, :id, @students.map {|s| [s.name, s.id] },

[Rails] Delete duplicate records from a 2 dimensional array in rails

2013-09-08 Thread pradeep83 . achu
Hello, I am trying to insert elements into an array like this... @mem = []@tran = Transport.find_all_by_month_and_vehicle(date,vehicle)tran.each do |t| @mem << [Student.find_by_id(t.mem_id), t.transport_date, vehicle.no] if t.mem_type=="Student" @mem << [Employee.find_by_id(t.mem_id), t.tra