[Rails] Re: Re: Time without date

2012-10-26 Thread Denis P.
Philip Hallstrom wrote in post #937228: Just for the sake of argument... how about the time it takes runners to finish a marathon? Sure you could use seconds as an integer field, but time without date make sense... I'm currently developing application, where I need to store beginning date

[Rails] Routing error in rails

2012-10-26 Thread ruby rails
In my controller I have def update_project_dates p It is end date. @user=User.find(params[:user]) @projects=Project.find_all_by_user_id(@user) end In the view page (only some part of the code is copied and pasted) eventDrop: function() {

[Rails] sorting in rails 2.3.5 not same as sorting in Rails 3

2012-10-26 Thread deal bitte
In rails 2.3.5 (with active scaffold) all my columns in display were sorted even though they belonged to a related table. But in Rails 3.2.8 , only columns which belong to the main table are sorted .To sort a related table column we need to specifically add the line below

[Rails] RecordSelect does not work in nested pages (Rails 3.2.8)

2012-10-26 Thread deal bitte
RecordSelect is a Rails widget to help you pick one record out of many. It works in Rails 3.2.8 in the main pages but not in the nested pages. Does anyone else also face the same problem?? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Don't clear password fields if the password is ok

2012-10-26 Thread Dmitry Maksyoma
Hi, I've done a registration form with password and password_confirmation fields and the fields are being cleared if there is an error with another form input, e.g. invalid email. I find it annoying that password has to be reentered when there is a problem with another field, actually, there

[Rails] sum decimals

2012-10-26 Thread Werner
I have a column hours which I want to sum up the decimals Week.sum('hour')= 22.5 But I want to select by project_id not the hole table. Week.find_all_by_project_id(@project.id, :select = workhour).sum #undefined method `+' for #Week hour: #BigDecimal:7fd68b358400,'0.0',9(18) I cant find

[Rails] Re: Uniqueness and sql serialize

2012-10-26 Thread Matt Jones
On Wednesday, 24 October 2012 18:26:15 UTC-4, Filipe Giusti wrote: Hi fellow programmers, I was looking for how to keep integrity in some financial transactions and I saw this This could even happen if you use transactions with the ‘serializable’ isolation level. in the uniqueness page

[Rails] Re: combine 'group' and 'order' in joined tables

2012-10-26 Thread Javix
Even if the below solutions I found work in the console, it is no the case in the controller because the result is no more Array or AR relation but ActiveSupport::OrderedHash and 'paginate' method does not accept that: *1st way:* irb(main):019:0 cc =

Re: [Rails] Rails Services Module

2012-10-26 Thread Matt Jones
On Thursday, 25 October 2012 19:19:34 UTC-4, Matthias Frick wrote: hmm, i understand your opinion, but nowadays it would be very convenient to have so a docking station layer.. nearly every rails app interacts with external services, so I think it would be a great idea.. more other

[Rails] Re: The Rails server(WEbrick) does not start

2012-10-26 Thread Nishant Jain
Can someone solve this error: /usr/local/lib/ruby/gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): no suitable image found. Did find: (LoadError)

[Rails] Ruby on Rails contractor

2012-10-26 Thread Oliver Becker
Hi, I am looking for a developer who is keen to take on some contract work. If you have capacity (full time or part time) and might be interested please respond to me directly. Regards -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] Don't clear password fields if the password is ok

2012-10-26 Thread Walter Lee Davis
On Oct 26, 2012, at 7:15 AM, Dmitry Maksyoma wrote: Hi, I've done a registration form with password and password_confirmation fields and the fields are being cleared if there is an error with another form input, e.g. invalid email. I find it annoying that password has to be reentered

Re: [Rails] Don't clear password fields if the password is ok

2012-10-26 Thread Dmitry Maksyoma
On Saturday, October 27, 2012 2:08:53 AM UTC+13, Walter Lee Davis wrote: I've done a registration form with password and password_confirmation fields and the fields are being cleared if there is an error with another form input, e.g. invalid email. I find it annoying that password has to be

[Rails] Re: Don't clear password fields if the password is ok

2012-10-26 Thread Robert Walker
Dmitry Maksyoma wrote in post #1081303: No, I'm not using auth engine, I only use `has_secure_password'. I've tried removing that and adding `attr_accessor :password, :password_confirmation' and it didn't change a thing, so it seems to be the default Rails behaviour. My view:

Re: [Rails] Re: Time without date

2012-10-26 Thread KlausG
Am Dienstag, 31. August 2010 23:12:51 UTC+2 schrieb Philip: Just for the sake of argument... how about the time it takes runners to finish a marathon? Sure you could use seconds as an integer field, but time without date make sense... I agree that 4pm is kind of pointless, but 16 hours

RE: [Rails] XML Builder

2012-10-26 Thread B.W. Basheer
Dave, You nailed it. Either way works fine. I could not find a reference with the grammar explained as you do below, at least not in the specific XML Builder context. Thanks. Page -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] On

Re: [Rails] Ajax test not working

2012-10-26 Thread Rob Biedenharn
On Oct 25, 2012, at 4:32 PM, Jason Walsh wrote: webber han wrote in post #1081214: Jason Walsh wrote in post #1080993: Am having real probs trying to use Ajax with my Rails app. I have set up a test as follows: in javascript file: window.onload = function() {

Re: [Rails] sum decimals

2012-10-26 Thread Rob Biedenharn
On Oct 26, 2012, at 8:18 AM, Werner wrote: I have a column hours which I want to sum up the decimals Week.sum('hour')= 22.5 But I want to select by project_id not the hole table. Week.find_all_by_project_id(@project.id, :select = workhour).sum #undefined method `+' for #Week hour:

Re: [Rails] Re: Time without date

2012-10-26 Thread Zhi-Qiang Lei
Yes, check ActiveSupport, RoR has it. On Oct 26, 2012, at 10:34 PM, KlausG wrote: Am Dienstag, 31. August 2010 23:12:51 UTC+2 schrieb Philip: Just for the sake of argument... how about the time it takes runners to finish a marathon? Sure you could use seconds as an integer field, but time

Re: [Rails] sum decimals

2012-10-26 Thread Werner
Thanks Rob.. true.. it works as expected.. Am Freitag, 26. Oktober 2012 16:53:13 UTC+2 schrieb Rob Biedenharn: On Oct 26, 2012, at 8:18 AM, Werner wrote: I have a column hours which I want to sum up the decimals Week.sum('hour')= 22.5 But I want to select by project_id not

[Rails] How to use Ajax with rails ?

2012-10-26 Thread Fahim Patel
Hi all, Can any one tell me how to use Ajax with Rails. Send me quick start up link and videos. Thanks Regards Fahim Babar PAtel -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] JOB - Senior Rails Developer - DC and VA to 160k

2012-10-26 Thread Beau G.
I have 2 clients: one in downtown DC and the other one is near Herndon, VA. Both companies are looking for Senior Rails Developers. These are full time, on-site, salaried RoR Developer positions paying 130-160k depending on experience + benefits. These jobs are available to local candidates who

Re: [Rails] How to use Ajax with rails ?

2012-10-26 Thread Juan Pablo
Try Google. :) https://www.google.com/search?q=ajax+with+railsoq=ajax+with+railssugexp=chrome,mod=0sourceid=chromeie=UTF-8 On Fri 26 Oct 2012 12:38:20 PM ART, Fahim Patel wrote: Hi all, Can any one tell me how to use Ajax with Rails. Send me quick start up link and videos. Thanks

Re: [Rails] How to use Ajax with rails ?

2012-10-26 Thread Jordon Bedwell
On Fri, Oct 26, 2012 at 10:38 AM, Fahim Patel pafa...@gmail.com wrote: Hi all, Can any one tell me how to use Ajax with Rails. Send me quick start up link and videos. Include jquery-rails and do it like you normally would. -- You received this message because you are subscribed to