[Rails] Best Models Associations suggestions

2011-06-22 Thread rajeevkannav
Hello All I am working on my new project. in that my requriments are like this Subjects have many books, book belongs to subjects Books have many Chapters, Chapter belongs to Books Chapter have many pages, page belongs to Chapters Is that fine or it could be done better Ways Thanks in advance -

[Rails] HABTM issue

2011-06-15 Thread rajeevkannav
class User < ActiveRecord::Base has_many :correlations has_many :roles, :through => :correlations has_many :skills, :through => :correlations attr_accessible :email, :password, :password_confirmation, :remember_me, :role_ids, :skill_ids, :username, :first_name, :last_name, :address, :cit

[Rails] How to convert Image To Text in RoR

2011-06-13 Thread rajeevkannav
Hello All I have too many scanned notes i need to convert them into text and then user may download that as pdf , How it can be done in RoR Please help Thanks in advance :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view th

[Rails] Re: has_many belongs_to in multiple tables

2011-06-04 Thread rajeevkannav
any idea on this issue ?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Sy1kTnVURFJJM29K. To post to this group, send email to rubyonrails-talk

[Rails] has_many belongs_to in multiple tables

2011-06-03 Thread rajeevkannav
My model association looks like this class User < ActiveRecord::Base has_many :correlations has_many :roles, :through => :correlations has_many :skills, :through => :correlations end class Skill < ActiveRecord::Base has_many :correlations has_many :roles, :through => :correlat

[Rails] How TO deploy A Rails application on GoDaddy

2011-05-02 Thread rajeevkannav
Hello All I am new to deployment an rails application . i purchased web hosting plan on go-daddy. and did the following stpes 1. Log in to the GoDaddy Hosting Control Center 2. Make sure Java is disabled (under Language Options). If it is enabled, you can't deploy a Rails application. Change t

[Rails] how to get postal_code

2011-02-19 Thread rajeevkannav
Hi all Is there any way to get visitiores ZIp ip = GeoLocation.find('59.180.157.125') # => {:city=>"Liverpool", :region=>"NY", :country=>"US",:latitude=>"43.1059", :longitude=>"-76.2099"} puts ip.inspect is giving me city country and all there is any way to get zip code Please suggest than

[Rails] remove useless code

2011-01-07 Thread rajeevkannav
hey all I have a huge application is there any way to know which gem and plug- in is using by my rails application that makes me able to remove use less code in vender/plugins and requires gem lines and my application will become easy to reinstall and upgrade Thanks -- You received this messag