Re: [Rails] Introducing Web Console 1.0 [Google Summer of Code 2013 Project]

2013-09-24 Thread Genadi Samokovarov
Please, do so! Would appreciate any feedback :) On Saturday, September 21, 2013 1:52:06 AM UTC+3, tamouse wrote: Well done!! I haven't tried it out, but this is quite an ambitious project and I'm looking forward to seeing it. On Sep 19, 2013, at 11:41 AM, Genadi Samokovarov

[Rails] Datepicker not showing proper field

2013-09-24 Thread Alex A
I'm using Rails version 3.2 and Ruby 1.9.3 I'm trying to make within a form_tag a datepicker field. In my GemFile I have added gem 'jquery-rails' and gem 'jquery_datepicker'. In the rails console I have used the command: rails generate jquery:install --ui Application.js looks like this: //

[Rails] Re: Rails 4 deprecation of in-place edit methods for collection associations

2013-09-24 Thread Josh Jordan
The justification for this change seems preposterous. Why would anyone think that, in the former example, the database has changed? The method called there is named select!. This sounds like a case of a few people writing fragile code without any understanding of what they were doing or the

[Rails] Re: redirect on browser success, but redirect on functional test is error

2013-09-24 Thread jsnark
carts.yml does not create the cart with id=1 that LineItem.find(1) refers to. -- 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

Re: [Rails] Retrieve duration (in string format) from database and convert to Ruby syntax for calculation

2013-09-24 Thread Fai Wong
Thanks for your help everyone. I ended up using Chronic Duration gem. https://github.com/hpoydar/chronic_duration On Sunday, September 22, 2013 3:58:58 PM UTC+8, Colin Law wrote: On 20 September 2013 08:30, Fai Wong wong...@gmail.com javascript: wrote: If I store 1.month as a string in

[Rails] What is the best way to convert a currency string 'USD' to locale :en-US?

2013-09-24 Thread Fai Wong
What is the best way to convert a currency string 'USD' to locale :en-US? Right now trying to make it flexible to show the money and symbol correctly based on the currency string (like 'USD' or 'AUD') stored against the user's record. I need to be able to do the following based on say 'GBP'

Re: [Rails] What is the best way to convert a currency string 'USD' to locale :en-US?

2013-09-24 Thread Walter Lee Davis
You could make a helper that would extract this value from the user and translate the display string. If you set up a hash like {'USD' = :en-US, 'GBP' = :en-BG, ...} then there would be one place to look for the correct symbol. Walter On Sep 24, 2013, at 10:55 AM, Fai Wong wrote: What is the

Re: [Rails] Datepicker not showing proper field

2013-09-24 Thread BalaRaju Vankala
I think you have to add script for datepicker Just like below $(function() { $(.date_picker).datepicker({ dateFormat : 'd M, yy', minDate : 0, maxDate : +90 }); }); On Tue, Sep 24, 2013 at 4:47 PM, Alex A malusalexan...@gmail.com wrote: I'm using Rails version

Re: [Rails] How to communicate a web app with destkop app?

2013-09-24 Thread Fernando Almeida
Does is it an alternative for you? https://developer.chrome.com/apps/usb.html https://wiki.mozilla.org/WebAPI/WebUSB Without the desktop layer, in this case. -- Fernando Almeida fernandoalmeida.net http://www.fernandoalmeida.net adminfinanceiro.com.br http://www.adminfinanceiro.com.br

[Rails] How to communicate a web app with destkop app?

2013-09-24 Thread Ricardo do Valle
Hi everyone, I need that my web app talk with a dektop application. User case: a user click a button on the page, and this button send a command to the desktop app and wait for the answer from destkop app or timeout. I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. The

Re: [Rails] What is the best way to convert a currency string 'USD' to locale :en-US?

2013-09-24 Thread Peter Hickman
Hang on do you mean to convert USD 1000 into AUD 1000? Surely you would need to do a currency conversion because USD 1000 is AUD 1064. This would seem to have nothing to do with locales at all. On 24 September 2013 16:58, Walter Lee Davis wa...@wdstudio.com wrote: You could make a helper that

Re: [Rails] What is the best way to convert a currency string 'USD' to locale :en-US?

2013-09-24 Thread Walter Lee Davis
I just saw a gem on RubyFlow last week that handles currency conversions using Google as a data source. If that's what you're after, forget what I said and use that. Walter On Sep 24, 2013, at 3:41 PM, Peter Hickman wrote: Hang on do you mean to convert USD 1000 into AUD 1000? Surely you

Re: [Rails] How to communicate a web app with destkop app?

2013-09-24 Thread Colin Law
On 24 September 2013 19:44, Ricardo do Valle ricardodova...@gmail.com wrote: Hi everyone, I need that my web app talk with a dektop application. Which computer is the web application running on (not the browser, the rails server)? Colin User case: a user click a button on the page, and

[Rails] [JOBS] RoR consulting roles in New York City, massive commercial web development.

2013-09-24 Thread Dave Freireich
This is a consulting role, 3-6 month extendable engagements, W2 only through Core Search Group. Think you can design/build for high performance RoR/Python web infrastructure that serves tens of thousands of users concurrently? Users accessing massive amounts of data? Look into the future.

Re: [Rails] How to communicate a web app with destkop app?

2013-09-24 Thread Ricardo do Valle
@Colin the rails server is running in a VPS with nginx and unicorn. @Fernando, thank you very much, but it is not alternative for this project, i will study the chrome devs API for a future and another project, have you used already? I am looking for a way to create sockets and controls (state

[Rails] Re: Rails 4 deprecation of in-place edit methods for collection associations

2013-09-24 Thread George Georgiev
Thank you Matt!! Now I see my own confusion - I was convinced that these two snippets are identical in Rails 3 (Well, they are - JUST in MY case) When they do the same thing - when the collection contains only new records (hence no unlinking required). In all other cases in-place filtering