Re: [Rails] want to run my rails app automatically... i hosted rails app in plesk server (centos 5.6)

2012-08-08 Thread Saravanan P
Thanks Colin not only boot start server i want run my site all time.. is there any way.. If i starting server automatically mean i close the server machine my site stop working na?? On Wednesday, August 8, 2012 8:01:14 PM UTC+5:30, Colin Law wrote: > > On 8 August 2012 14:46, Saravanan P > > w

[Rails] Re: Error Bundler

2012-08-08 Thread fitri sulianto
Yes i have proxy, buat i try to add this : http_proxy=http://user:pass@ip_proxy:port/ buat nothing happen.. Any advice? Walter Davis wrote in post #1071682: > On Aug 8, 2012, at 11:17 AM, fitri sulianto wrote: > >> create .gitignore >> create app/mailers/.gitkeep >> create co

[Rails] Re: Error Bundler

2012-08-08 Thread fitri sulianto
Yes i have proxy, but i can't set to bypass proxy, i try : http_proxy=http://user:password@ip_proxy:port/ but nothing happen. any suggest? Colin Law wrote in post #1071684: > On 8 August 2012 16:37, Walter Lee Davis wrote: >>> create README.rdoc >>> create app/mailers >>> cr

[Rails] Re: Error installing therubyracer

2012-08-08 Thread Keith Posehn
I found a similar problem, but got a little nugget of info in the error on OS X 10.8 Mountain Lion: make compiling rr.cpp make: g++-4.2: No such file or directory make: *** [rr.o] Error 1 I found that all you need to do on Mountain Lion is: 1: Make sure you've installed Xcode command line tools

[Rails] Ruby Hoedown 2012 -- The FREE Ruby conference in Nashville, TN -- CFP and registration now open!

2012-08-08 Thread Jeremy McAnally
Hello everyone! Ruby Hoedown 2012 (presented by GitHub) will be happening on September 21 and 22, 2012 in Nashville, TN at the Scarritt-Bennett Center (the same beautiful venue as last year). Our registration is open now (available at http://rubyhoedown.com) and our CFP is open for just a little l

Re: [Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Mohamad El-Husseini
OK, thanks. But why would I do this instead of just adding the extra resource? resources :users resources :owners, controller: 'users', path: 'users' And in forms I could just call "form_for :user" instead of "form_for @user"? On Wednesday, August 8, 2012 3:23:10 PM UTC-4, Dheeraj Kumar wrote:

Re: [Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Dheeraj Kumar
AR is activerecord AR::Base is what all active record models inherit from a#b means i'm talking about method b in class a Dheeraj Kumar On Thursday 9 August 2012 at 12:50 AM, Dheeraj Kumar wrote: > http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-becomes > > class Us

Re: [Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Dheeraj Kumar
http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-becomes class User < Person end u = User.first u.class.name #=> User p = u.becomes(Person) p.class.name #=> Person Dheeraj Kumar On Thursday 9 August 2012 at 12:38 AM, Mohamad El-Husseini wrote: > Sorry, can you clar

Re: [Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Mohamad El-Husseini
Sorry, can you clarify your post a little? What does AR::Base#becomes exactly mean? I'm relatively new to some of this stuff! On Wednesday, August 8, 2012 3:03:38 PM UTC-4, Dheeraj Kumar wrote: > > It's simple. Use AR::Base#becomes > > > Dheeraj Kumar > > On Thursday 9 August 2012 at 12:20 AM, Mo

Re: [Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Dheeraj Kumar
It's simple. Use AR::Base#becomes Dheeraj Kumar On Thursday 9 August 2012 at 12:20 AM, Mohamad El-Husseini wrote: > I'm using Rails 3.2. And I'm pretty sure you can. Basically, to get a form to > post to the right model I need to set it up generically. My initial form was: > > = simple_form_

Re: [Rails] Memcache and Rails - Storing String as values.

2012-08-08 Thread Muruga
Hi I think its because of marshalling.U need to pass raw=true or only true On Wed, Aug 8, 2012 at 12:10 PM, Jimish Jobanputra wrote: > Hello all, > > I have been using Memcache with my rails application to store certain > key value pair I am using Dalli gem for the same... So Here's what i

[Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Mohamad El-Husseini
I'm using Rails 3.2. And I'm pretty sure you can. Basically, to get a form to post to the right model I need to set it up generically. My initial form was: = simple_form_for @user do |f| To make it work I had to change it to this: = simple_form_for :user, url: user_path(@user) do |f| To work

Re: [Rails] Error Bundler

2012-08-08 Thread Colin Law
On 8 August 2012 16:37, Walter Lee Davis wrote: > > On Aug 8, 2012, at 11:17 AM, fitri sulianto wrote: > >> Any body can help me! >> >> i try create a new project, at the end i had message >> error bundler. >> >> root@xxx:/home/xxx# rails new depot_b >> create >> create README.rdoc >>

Re: [Rails] Error Bundler

2012-08-08 Thread Walter Lee Davis
On Aug 8, 2012, at 11:17 AM, fitri sulianto wrote: > Any body can help me! > > i try create a new project, at the end i had message > error bundler. > > root@xxx:/home/xxx# rails new depot_b > create > create README.rdoc > create Rakefile > create config.ru > create

[Rails] Error Bundler

2012-08-08 Thread fitri sulianto
Any body can help me! i try create a new project, at the end i had message error bundler. root@xxx:/home/xxx# rails new depot_b create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/

[Rails] Re: How do I force link_to/form helpers to use the superclass name in the path instead subclass?

2012-08-08 Thread Peter
On Tuesday, August 7, 2012 11:13:56 AM UTC-5, Mohamad El-Husseini wrote: > > I want my helpers to generate paths using a superclass instead of the > subclasses. Assuming I have Owner and Member that both inherit from User, > rails will use the current objects class name when generating paths: > >

Re: [Rails] want to run my rails app automatically... i hosted rails app in plesk server (centos 5.6)

2012-08-08 Thread Colin Law
On 8 August 2012 14:46, Saravanan P wrote: > Hi guys > > I hosted my rails app in plesk server (centos 5.6). i am login through ssh > and starting my rails app.. but i want to run my app automatically I think that is a centos question rather than a rails one. You know how to start the server man

[Rails] want to run my rails app automatically... i hosted rails app in plesk server (centos 5.6)

2012-08-08 Thread Saravanan P
Hi guys I hosted my rails app in plesk server (centos 5.6). i am login through ssh and starting my rails app.. but i want to run my app automatically Please advice... :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this g

Re: [Rails] uninitialized constant ActiveResource::UnauthorizedAccess

2012-08-08 Thread Rafi A
On Wed, Aug 8, 2012 at 3:21 PM, Colin Law wrote: > On 8 August 2012 05:57, Rafi A wrote: > > Hi, > > > > This is resolved. I copied the 'activeresource-3.0.0' gem folder from the > > source folder of rails3 and pasted under the 'config/initializers' > folder of > > my rails3 application. So the

Re: [Rails] uninitialized constant ActiveResource::UnauthorizedAccess

2012-08-08 Thread Colin Law
On 8 August 2012 05:57, Rafi A wrote: > Hi, > > This is resolved. I copied the 'activeresource-3.0.0' gem folder from the > source folder of rails3 and pasted under the 'config/initializers' folder of > my rails3 application. So the below code snippet available in > application_controler.rb file i

Re: [Rails] Creating ToDo List App

2012-08-08 Thread Colin Law
On 8 August 2012 07:29, Emeka Patrick wrote: > Hi, > > New Rails user here trying to create a basic todolist app in rails 3.2.6 > and running into some foreign key issues. Here's what I did... > > I generated scaffolds > > list title:string & task description:text listname:string > > Next, in orde

Re: [Rails] Getting openJDK &JRE error while Ido rake

2012-08-08 Thread Norbert Melzer
I'm getting similar errors when I have a redmine installed in that gemset, perhaps that's your problem too. Also I would suggest to upgrade to sunjava 7, with that I had much less java related errors in general. If possible you should think about upgrading your ubuntu to 12.04, which is the curre

Re: [Rails] Devise with many models and ArgumentError in RegistrationController#create

2012-08-08 Thread Yong Gu
Maybe this can help you: http://stackoverflow.com/questions/3969025/accepts-nested-attributes-for-with-belongs-to-polymorphic On Aug 8, 2012, at 3:33 PM, Andrey Krisanov wrote: > Yes, see my models https://gist.github.com/3288141 > > среда, 8 августа 2012 г., 11:10:48 UTC+4 пользователь zerogy

[Rails] Getting openJDK &JRE error while Ido rake

2012-08-08 Thread D
Hello all, I use Ubuntu 10.04 & rvm ruby . Sometimes when I do rake I get this error, # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00f623d9, pid=8361, tid=3078060912 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK Client VM (20.0-b12 mixed mode, s

Re: [Rails] Devise with many models and ArgumentError in RegistrationController#create

2012-08-08 Thread Andrey Krisanov
Yes, see my models https://gist.github.com/3288141 среда, 8 августа 2012 г., 11:10:48 UTC+4 пользователь zerogy написал: > > If there has_one :character in your model? > > On Aug 8, 2012, at 3:04 PM, Andrey Krisanov wrote: > > Hello! I write custom registration for different user types. > > I have

Re: [Rails] Devise with many models and ArgumentError in RegistrationController#create

2012-08-08 Thread Yong Gu
If there has_one :character in your model? On Aug 8, 2012, at 3:04 PM, Andrey Krisanov wrote: > Hello! I write custom registration for different user types. > > I have Devise model User and two models (roles) Company and Invidual: > https://gist.github.com/3288141 > I created UserObserver https

[Rails] Devise with many models and ArgumentError in RegistrationController#create

2012-08-08 Thread Andrey Krisanov
Hello! I write custom registration for different user types. I have Devise model User and two models (roles) Company and Invidual: https://gist.github.com/3288141 I created UserObserver https://gist.github.com/3288157 Registration view: https://gist.github.com/3288189 and partial (by default for