search for: akramwasim1

Displaying 3 results from an estimated 3 matches for "akramwasim1".

2009 Sep 02
3
how to upload a file and to download it
hi all , Plz give me some links on how to upload and download files in RoR. I want to upload a pdf file in one login and i want to download the same in other login
2009 Sep 03
12
paperclip is not saving the files
Hi all, I''ve installed paperclips but paperclip is not saving the files my model has has_attached_file :attachment,:styles => { :medium => "300x300>", :thumb => "100x100>" } and i have db migration as class AddAttachmentToPolicies < ActiveRecord::Migration def self.up add_column :policies,
2009 Aug 08
4
how to get id of other table
Hi All, I have a doubt regarding join tables I''m having 2 models 1)Fac 2)Cont and both models have " has and belong to many" relationships so there are 3 tables 1)facs 2)conts 3)conts_facs then i''m fetching the data in controller as @conts=Cont.find(:all]) @cfacs=Fac.all(:joins=>:conts, :select=>"facs.name") but i dont know how to get the