Re: [Rails] My app does not need to talk to any database

2011-12-22 Thread Gomzi Pai
In config/application.rb comment require active_record/railtie line # Pick the frameworks you want: # require active_record/railtie require action_controller/railtie require action_mailer/railtie require active_resource/railtie require sprockets/railtie # require rails/test_unit/railtie Gautam

Re: [Rails] My app does not need to talk to any database

2011-12-22 Thread Gomzi Pai
when creating a new app just use -O or --skip-activerecord rails new myApp -O or rails new myApp --skip-activerecord Gautam Pai On Thu, Dec 22, 2011 at 11:03 PM, Gomzi Pai gomzi@gmail.com wrote: In config/application.rb comment require active_record/railtie line # Pick the frameworks

Re: [Rails] Re: How to fire Ajax call from Form_for

2011-12-22 Thread Gomzi Pai
try this link, is this what you are looking for? http://cssglobe.com/lab/charcount/01.html You will find complete implementation details and link to download here http://cssglobe.com/post/7161/jquery-plugin-simplest-twitterlike-dynamic-character-count-for-textareas Gautam Pai On Wed, Dec 21,

Re: [Rails] Re: rails initialization process description.

2011-12-22 Thread Gomzi Pai
plz refer the link below from railsguides http://guides.rubyonrails.org/initialization.html On Fri, Dec 23, 2011 at 11:28 AM, Priya D. li...@ruby-forum.com wrote: Hi Dani, Pls refer the below link. You can get deep idea about initialization process.

Re: [Rails] ActiveRecord relation validation in Rails 3.1

2011-12-22 Thread Gomzi Pai
try :scope option in your statement eg: validates :itemcode, :uniqueness = true, :scope = :user_id read the documentation here http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#method-i-validates_uniqueness_of and section 3.10 uniqueness in

Re: [Rails] http session nil

2011-12-22 Thread Gomzi Pai
In rails session data is accessible only in controller. And thats how its meant to be according to MVC. If you really need it in view you need to set an instance variable in controller and use it in view. But thats very bad and not supposed to be done. If you are accessing session data in views,

Re: [Rails] Action Controller: Exception caught

2011-11-15 Thread Gomzi Pai
go to your app root folder and try running rake db:migrate On Wed, Nov 16, 2011 at 8:42 AM, Scott Sewares li...@ruby-forum.com wrote: Hello All, I am taking a programming class and I am running into some problems with a Rail program I am working on from a book called Beginning Rails 3,

Re: [Rails] Mac OS/X and Rails 3 ?

2010-06-10 Thread Gomzi Pai
Have you checked this -- http://railscasts.com/episodes/200-rails-3-beta-and-rvm On Thu, Jun 10, 2010 at 8:04 AM, Niels Meersschaert nmeersscha...@mac.comwrote: Simplest way: Make you are up to date with rubygems, which is what DHH was referring to with gem update --system Then run: