Re: [Rails] Re: Pls try to solve my problem as early as possible

2012-07-13 Thread vishal singh
Hi, Are you using window os? Regards, Vishal On Sat, Jul 14, 2012 at 11:43 AM, Sonu Joshi wrote: > vishal singh wrote in post #1068659: > > gem install eventmachine -v 0.12.10 > > Soory Vishal but even thyese is not working.I would like to give you > some more information about the err

[Rails] Re: Pls try to solve my problem as early as possible

2012-07-13 Thread Sonu Joshi
vishal singh wrote in post #1068659: > gem install eventmachine -v 0.12.10 Soory Vishal but even thyese is not working.I would like to give you some more information about the error I am getting C:\Ajax>gem install eventmachine -v 0.12.10 Temporarily enhancing PATH to include DevKit... Building n

Re: [Rails] Pls try to solve my problem as early as possible

2012-07-13 Thread vishal singh
gem install eventmachine -v 0.12.10 On Sat, Jul 14, 2012 at 11:17 AM, Sonu Joshi wrote: > while installing thin server on my project running on ruby 1.9.2 and > rails 3.2.6 > C:\Ajax>bundle install > Fetching source index for https://rubygems.org/ > Using rake (0.9.2.2) > Using i18n (0.6.0) > Us

[Rails] Pls try to solve my problem as early as possible

2012-07-13 Thread Sonu Joshi
while installing thin server on my project running on ruby 1.9.2 and rails 3.2.6 C:\Ajax>bundle install Fetching source index for https://rubygems.org/ Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.3.6) Using activesupport (3.2.1) Using builder (3.0.0) Using activemodel (3.2.1) Using

[Rails] rb_class_superclass not located in msvcrt-ruby191.dll

2012-07-13 Thread Ricky D
So, long story short, I had o format and reinstall my OS hence all my dev utilities. git env sorted. DevKit was fine. Sphinx/mysql fine. Bundle installed perfectly. Everything is gravy until I go to rake db:create and build my database. Environment: OS: Win7 64-bit Ruby192 gem -v 1.8.24 rails 3.1

[Rails] Re: Cure AIDS Now web dev

2012-07-13 Thread Matt Jones
On Thursday, 12 July 2012 13:03:11 UTC-4, Ruby-Forum.com User wrote: > > This particular project is for that of a grander purpose. > > Cure AIDS Now (CAN) Foundation is undergoing clinical trails with > Google.org to release a non-toxic anti viral patch to cost-effectively > suppress HIV. The

[Rails] Re: ceil method

2012-07-13 Thread John Merlino
Yeah that's pretty much the key point - that return type of invoking the / method of integer and passing it a decimal is a decimal type cast. On Jul 12, 12:45 pm, Dave Aronson wrote: > On Thu, Jul 12, 2012 at 1:13 AM, John Merlino wrote: > > (@objects.size / 3.0).ceil > > > So if size returns 2,

Re: [Rails] Re: Re: What the Ruby Association

2012-07-13 Thread Colin Law
On 13 July 2012 16:27, Jean-Sébastien D. wrote: >> Please answer the question - how many customers does an >> activitiesmanager belong to? > > An activity manager can have multiple customer and repeat many time the > same customer. but an activity manager can only have one to one activity > > So i

[Rails] Re: How to Debug

2012-07-13 Thread dasibre
Rails has debugging tools built in, as a beginner I suggest starting with the inbuilt helpers, check out http://guides.rubyonrails.org/debugging_rails_applications.html http://railscasts.com/episodes/54-debugging-with-ruby-debug Checkout the rails guides and rails cast links above. On Tuesday,

[Rails] Re: Re: What the Ruby Association

2012-07-13 Thread Jean-Sébastien D.
> Please answer the question - how many customers does an > activitiesmanager belong to? An activity manager can have multiple customer and repeat many time the same customer. but an activity manager can only have one to one activity So it should be has follow class ActivitiesManager < ActiveRec

Re: [Rails] Re: What the Ruby Association

2012-07-13 Thread Colin Law
On 13 July 2012 16:13, Jean-Sébastien D. wrote: > Thanks it make more sense!!! > > So my structure should be as follow: > class ActivitiesManager < ActiveRecord::Base > belongs_to :customers > belongs_to :activities Please answer the question - how many customers does an activitiesmanager bel

[Rails] Re: What the Ruby Association

2012-07-13 Thread Jean-Sébastien D.
Thanks it make more sense!!! So my structure should be as follow: class ActivitiesManager < ActiveRecord::Base belongs_to :customers belongs_to :activities class Activity < ActiveRecord::Base has_one :activities_manager class Customer < ActiveRecord::Base has_many :activities_managers ha

Re: [Rails] Re: Re: Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Colin Law
On 13 July 2012 15:49, Jean-Sébastien D. wrote: > Colin Law wrote in post #1068584: >> On 13 July 2012 15:35, Jean-Sbastien D. wrote: used the plural suggests it belongs to several, but that does not seem >>> example, the customer and activities_managers is my actual names. Here >>> the real

[Rails] Re: Re: Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Jean-Sébastien D.
Colin Law wrote in post #1068584: > On 13 July 2012 15:35, Jean-Sbastien D. wrote: >>> used the plural suggests it belongs to several, but that does not seem >> example, the customer and activities_managers is my actual names. Here >> the real test lookup >> >> class ActivitiesManager < ActiveReco

Re: [Rails] Re: Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Colin Law
On 13 July 2012 15:35, Jean-Sébastien D. wrote: > Colin Law wrote in post #1068577: >> On 13 July 2012 14:58, Jean-Sbastien D. wrote: >>> class MusicInterest < ActiveRecord::Base >>> has_many :music_interest_managers >>> has_many :clients, through => :music_interest_managers >>> end >>> class

[Rails] Re: Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Jean-Sébastien D.
Colin Law wrote in post #1068577: > On 13 July 2012 14:58, Jean-Sbastien D. wrote: >> class MusicInterest < ActiveRecord::Base >> has_many :music_interest_managers >> has_many :clients, through => :music_interest_managers >> end >> class MusicInterestManager < ActiveRecord::Base >> belongs_t

[Rails] Re: devise 2.1.0: return Completed 401 Unauthorized when post json datas

2012-07-13 Thread Matt Jones
On Thursday, 12 July 2012 23:28:48 UTC-4, Ruby-Forum.com User wrote: > > I got 401 unauthorized when I visit a action with post json datas. > But I change post method to get, > It works fine. > > You'll need to post more details to get specific help; my guess would be that you're either tryin

Re: [Rails] What the Ruby Association

2012-07-13 Thread Walter Lee Davis
On Jul 13, 2012, at 9:58 AM, Jean-Sébastien D. wrote: > Here a final questions, not sure if you may know. I installed > activeadmin has a gem and it allow me to manage any customer, interest > and a manager to control when this one is expired or so Just a side-note here. I really STRONGLY rec

Re: [Rails] Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Colin Law
On 13 July 2012 14:58, Jean-Sébastien D. wrote: > Here a final questions, not sure if you may know. I installed > activeadmin has a gem and it allow me to manage any customer, interest > and a manager to control when this one is expired or so > > It has the following associations > > class Client

[Rails] Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Jean-Sébastien D.
Here a final questions, not sure if you may know. I installed activeadmin has a gem and it allow me to manage any customer, interest and a manager to control when this one is expired or so It has the following associations class Client < ActiveRecord::Base has_many :music_interest_managers

[Rails] Escorts Kuwait, Escorts Milan, Escorts Geneva - Callyourescort.com

2012-07-13 Thread Dulcina G.
Other then European countries Spain is a country with varied sense and opportunities. You may come to a decision to go to Spain for travelling or for business meetings. Although in the evening you may feel bored for the want of a companion. Well, don’t be anxious. Spain also called as a vacationer

[Rails] Re: Re: Re: Re: What the Ruby Association

2012-07-13 Thread Jean-Sébastien D.
Colin Law wrote in post #1068538: > On 13 July 2012 02:23, Jean-Sbastien D. wrote: order_id in customer and order table because its already assume to have >>> >> lots with your comments >> >> But I just want to make sure I get the association concept understood >> well. I place a questio

Re: [Rails] how to access drop down values in param

2012-07-13 Thread Colin Law
On 13 July 2012 08:20, aldm alert wrote: > Hi, > > I was wondering how to access all option values in drop down list in > rails params array. > In params array only selected value is stored, so is there any way to > access all options and selected value? > > One possibility is to create hidden fie

[Rails] how to access drop down values in param

2012-07-13 Thread aldm alert
Hi, I was wondering how to access all option values in drop down list in rails params array. In params array only selected value is stored, so is there any way to access all options and selected value? One possibility is to create hidden field and fill it in javascript onsubmit event with all opt

[Rails] Re: how to update rails 2 to rails 3

2012-07-13 Thread aldm alert
RVM was installed with sudo by my administrator and then it was problem because ordinary user doesnt have permision to pull gems. So chief of administrators reinstalled RVM and everything works fine. Thanks for answers -- Posted via http://www.ruby-forum.com/. -- You received this message be