Re: [Rails] Unable to install pg gem: Could not create Makefile dueto some reason

2014-07-24 Thread Himanshu Prakash
/general/boxbe-automatic-cleanup?tc_serial=17995672109tc_rand=1683534076utm_source=stfutm_medium=emailutm_campaign=ANNO_CLEANUP_ADDutm_content=001 Make sure libpq-dev package is installed. On Tue, Jul 22, 2014 at 9:44 PM, Himanshu Prakash vision2...@gmail.com wrote: Hi All, While installing

[Rails] Unable to install debugger

2014-07-24 Thread Himanshu Prakash
Hi, I am trying to install debugger gem. Facing issue as mentioned in- http://stackoverflow.com/questions/19638810/cant-install-debugger-gem-rails-mac-osx-mavericks Tried the given solution, but in vain. Anyone please can help on this? Much appreciated! OS: OSX 10.9.4 gem env: RubyGems

[Rails] Unable to install pg gem: Could not create Makefile due to some reason

2014-07-22 Thread Himanshu Prakash
OS X 10.9.4 I appreciate any help.. Thanks, Himanshu Prakash -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com

Re: [Rails] hw to create binary tree structure in rails

2013-09-04 Thread Himanshu Prakash
Try this- http://rubytree.rubyforge.org/rdoc/index.html On Thu, Sep 5, 2013 at 10:53 AM, mukul saharia mukul.saha...@gmail.comwrote: hello friends, i want to create a binary tree structure in railsapps.it there any gem or any other technique. -- You received this message because you are

Re: [Rails] Should Customers and Admins be on Separate Tables?

2013-05-26 Thread Himanshu Prakash
Hi, Agree to Colin Emil. I think this is the good opportunity to implement Single Table Inheritance(STI) pattern in your application. -Himanshu On Sat, May 25, 2013 at 8:32 PM, Emil S emil.so...@gmail.com wrote: In agreement with Colin's point here. If they all log in with the same login

Re: [Rails] How to Include Gem in Different Path

2012-08-18 Thread Himanshu Prakash
Hi Bill, either you can- include the path (where your gem is installed) into your system's PATH variable. OR install the gem into specified locationhttp://docs.rubygems.org/read/chapter/3i.e.- /home/username/myapp Thanks, Himanshu On Sat, Aug 18, 2012 at 3:59 AM, Admin Tensor

Re: [Rails] string array to integer array

2012-07-18 Thread Himanshu Prakash
Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Himanshu Prakash

Re: [Rails] string array to integer array

2012-07-18 Thread Himanshu Prakash
ignore last reply and try this- array.map!{|e| e.to_i} On Wed, Jul 18, 2012 at 8:30 PM, Himanshu Prakash vision2...@gmail.comwrote: try- array=[1,3,4] On Wed, Jul 18, 2012 at 8:25 PM, deal bitte li...@ruby-forum.com wrote: array=[1,3,4] How do i convert this array

[Rails] Re: Routes problem

2009-08-28 Thread Himanshu Prakash
Hi John, try this approach: in the Product class add this function- require 'uri' def self.find_custom arg object = self.new object.id = URI.escape(arg) object end and in the controller try calling as: Product.find_custom(params[:id]).view_all just try it, and let me know. On

[Rails] Undefined method updated? for model object

2009-07-31 Thread Himanshu Prakash
Hi, I have two model say- ZipCode ActiveRecord::Base belongs_to :state_provinces end StateProvince ActiveRecord::Base has_many :zip_codes end if I do @zip_code.update_atribute(:city, My City) its giving Undefined method updated? for StateProvince if I remove belongs_to specifier in ZipCode