[Rails] Re: how to deploy rails 2.3.8?

2014-06-08 Thread Thilak G
thanks for replying, i have tried capistrano but i can't understand some steps like SSH and server setup, i have confused , can anyone tell me how to start setup the server and how to get SSH key? then tell me also after deployed what file will generate? and how to host it? thilak -- You

[Rails] rails on ruby set up as railsinstaller-2.2.3.exe

2014-06-08 Thread Tran Thanh
when i create new app with mysql DB. I have to this error: C:/RailsInstaller/Ruby1.9.3/ bin/ruby.exe extconf.rb checking for ruby/thread.h... no checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()..

[Rails] Re: Design question: Redirection to a "create" action.

2014-06-08 Thread Salvatore Pelligra
IMHO, strictly binding data with controller is *not* a good mindset, even if in this case separate login and dict creation makes more sense, especially for the "open a dict" feature. However, just for fun and experimentation, one possible solution to keep the old UI design could be this: - Usin

[Rails] Re: Validating a boolean non-database addition to a model

2014-06-08 Thread Asa Romberger
The second attr is a transient only used when the user signs up for an account, so I did not want to save it it in the database. I now have in the model: attr_accessor :completed_cfdym def completed_cfdym @completed_cfdym end def completed_cfdym=(var) if var = 'true' @completed_cfdym = '

[Rails] Re: how to deploy rails 2.3.8?

2014-06-08 Thread Matt Jones
On Saturday, 7 June 2014 06:05:36 UTC-5, Thilak G wrote: > > Hi everyone, > > > I am new to ruby on rails, I have developed rails application in > rails-2.3.8,ruby-1.9.2,mysql, wamp server with windowsxp platform,can > anyone help me how to deploy it and also tell me how to host it after > dep

[Rails] Re: Rails source code architecture

2014-06-08 Thread Matt Jones
On Friday, 6 June 2014 04:32:21 UTC-5, Matthieu Foucault wrote: > > Hello, I am a software engineering PhD student. I am currently performing > and empirical study in which I am studing software metrics on the Rails > project. I am analyzing the code of Rails 2.3 for this study. > I need your h

[Rails] Re: Validating a boolean non-database addition to a model

2014-06-08 Thread James Kwame
What exactly are you trying to achieve with this approach, why do you need to have the second attr not in the database and validated? To answer your question, yes you can force it to be a boolean, by creating your own accessor methods Instead of attr_accessor :attrvalue def attrvalue @va

[Rails] Re: Re-render partial inside a modal

2014-06-08 Thread Frederick Cheung
On Sunday, June 8, 2014 1:33:24 AM UTC+1, Dinna Gonzales wrote: > Inside my home.html.erb. I am rendering a partial inside a modal for my > sign-up. > > > > > > What I actually want to accomplish is rerendering the partial inside the > modal once User.save does not work. Please help :(

[Rails] Re: Validating a boolean non-database addition to a model

2014-06-08 Thread Frederick Cheung
On Sunday, June 8, 2014 2:17:08 AM UTC+1, Asa Romberger wrote: >   attr_accessor :attrvalue > The dbvalue works, the attrvalue does not work and always throws the message > attrvalue is not a valid response. > > I assume that attrvalue is not a boolean. Can I force it to be a boolean? > Altern

[Rails] Re: Multitenancy with Rails and rspec

2014-06-08 Thread Frederick Cheung
On Saturday, June 7, 2014 7:17:28 PM UTC+1, Travis Lindsey wrote: > Hello, I am following this book Multitenancy with Rails. Has anyone here read > this book or can shed light on the issue? > > > When I run rspec i get following errors > rspec spec/features/accounts/sign_up_spec.rb > > Just a

[Rails] Re: how to deploy rails 2.3.8?

2014-06-08 Thread Frederick Cheung
On Saturday, June 7, 2014 12:05:36 PM UTC+1, Thilak G wrote: > Hi everyone, > > > > > I am new to ruby on rails, I have developed rails application in > rails-2.3.8,ruby-1.9.2,mysql, wamp server with windowsxp platform,can anyone > help me how to deploy it and also tell me how to host it afte

[Rails] Re-render partial inside a modal

2014-06-08 Thread Dinna Gonzales
*Inside my home.html.erb. I am rendering a partial inside a modal for my sign-up.* <%= render partial: 'users/form', :controller=>"users", :action =>"new" %> × *In my Users.controller.rb, I am rendering new sign up page if user inputs incorrect information! * def create @user = User.ne