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

2013-09-20 Thread Erwin
thanks for sharing ... great job Le jeudi 19 septembre 2013 18:41:31 UTC+2, Genadi Samokovarov a écrit : Hi There, My name is Genadi and for the last 2 months, me and Guillermo Iguaran have been working on bringing rails console to the browser under the Google Summer of Code 2013 program.

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

2013-09-20 Thread Fai Wong
If I store 1.month as a string in the database, how do I convert 1.month into 1.month? This way I can use the 1.month value stored in database to perform the following calculation. Time.now + 1.month -- You received this message because you are subscribed to the Google Groups Ruby on

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

2013-09-20 Thread Earl St Sauver
This is really cool! I'm super excited to get playing with it. Out of curiosity, do you know if all of the other google summer of code project ideas have been filled? The project idea list doesn't look like it's been updated to indicate who actually got the Summer of Code grants to do the

[Rails] CRUD model in a bootstrap modal with jquery, ajax - best practice

2013-09-20 Thread csanta
Hi, i have an model, which i want to show edit and update in a dialog via ajax. What i do at the moment: To open the Modal and render the partial, i send an ajax request to controller#show with ujs this is the link: a class=person-dialog data-remote=true data-type=script

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

2013-09-20 Thread Genadi Samokovarov
Hi Earl, You can see this year's accepted projects at http://weblog.rubyonrails.org/2013/5/27/rails-google-summer-of-code-projects/. I guess that the guys will update the page again (or create a new one) during the preparation for the next Summer of Code (should Rails apply again). This

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

2013-09-20 Thread bradley.kie...@gmail.com
Brilliant, thank you! On Thursday, 19 September 2013 17:41:31 UTC+1, Genadi Samokovarov wrote: Hi There, My name is Genadi and for the last 2 months, me and Guillermo Iguaran have been working on bringing rails console to the browser under the Google Summer of Code 2013 program. We named

[Rails] Re: Accessing model attributes in ActiveSupport::Concern module

2013-09-20 Thread Josh Jordan
Felix, You defined image_dir as a local variable in the scope of the Job class. It goes out of scope (and, since nothing else references it, gets cleaned up) after the class definition of Job is evaluated. Instead, define image_dir on *instances* of Job: class Job ActiveRecord::Base

[Rails] How to increase the css and js file loading speed in rails 3

2013-09-20 Thread chandra sekar
Hi All Right now i am working on rails 3 . Is there any possible way to increase the css and js file loading speed (with out asset). please help me Regards Chandrashekar -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe

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

2013-09-20 Thread Raj Kumar
btw you can do it using eval like eval(1.month) On Friday, 20 September 2013 03:30:16 UTC-4, Fai Wong wrote: If I store 1.month as a string in the database, how do I convert 1.month into 1.month? This way I can use the 1.month value stored in database to perform the following calculation.

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

2013-09-20 Thread Raj Kumar
I don't think this is good idea. 1.month.to_i will return in seconds as 2592000. you can store this and while fetching you can use it as it is Time.now + 2592000 On Friday, 20 September 2013 03:30:16 UTC-4, Fai Wong wrote: If I store 1.month as a string in the database, how do I convert

Re: [Rails] Re: Accessing model attributes in ActiveSupport::Concern module

2013-09-20 Thread Jordon Bedwell
On Fri, Sep 20, 2013 at 6:39 AM, Josh Jordan josh.jor...@gmail.com wrote: Felix, You defined image_dir as a local variable in the scope of the Job class. It goes out of scope (and, since nothing else references it, gets cleaned up) after the class definition of Job is evaluated. Instead,

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

2013-09-20 Thread Eric Hayes
Take a look at this gem: https://github.com/peleteiro/ruby-duration —it will convert an arbitrary duration (like 1 month, 2 weeks, etc.) into seconds which can be stored in the DB. It is very similar to what Raj is recommending, just a little more formal. Either way you can avoid eval'ing code,

[Rails] Re: How to increase the css and js file loading speed in rails 3

2013-09-20 Thread Eric Hayes
Without the Asset Pipeline, the answer is to send less CSS or JS. With JS you could move as much as possible to the bottom of your HTML and include as few files as possible. On Friday, September 20, 2013 4:49:54 AM UTC-7, chandra sekar wrote: Hi All Right now i am working on rails 3 . Is

[Rails] PRIME-RAILS Suite of components for RAILS

2013-09-20 Thread Nixon Lázaro
Hello my name is Lázaro Nixon and I am PrimeFaces Team member, we do a popular suite of components for Java server faces (primefaces.org), and I am doing a new project that provide helpers for using core of PrimeFaces on ruby on rails aka Prime-Rails. It will provide a many helpers for

[Rails] having problem to install the gem `mysql`

2013-09-20 Thread Love U Ruby
I am having problem to install the gem `mysql`. kirti@kirti-Aspire-5733Z:~$ gem install mysql Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /home/kirti/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb

[Rails] Re: having problem to install the gem `mysql`

2013-09-20 Thread Love U Ruby
found the answer from this thread - http://askubuntu.com/questions/17856/installing-mysql-ruby-gem -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

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

2013-09-20 Thread Tamara Temple
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 gsamokova...@gmail.com wrote: Hi There, My name is Genadi and for the last 2 months, me and Guillermo Iguaran have been

Re: [Rails] Re: having problem to install the gem `mysql`

2013-09-20 Thread Thota praneeth
sudo apt-get install mysql-client libmysqlclient-dev sudo apt-get install mysql-server On Sat, Sep 21, 2013 at 2:29 AM, Love U Ruby li...@ruby-forum.com wrote: found the answer from this thread - http://askubuntu.com/questions/17856/installing-mysql-ruby-gem -- Posted via

[Rails] Re: Re: having problem to install the gem `mysql`

2013-09-20 Thread Love U Ruby
praneeth thota wrote in post #1122041: sudo apt-get install mysql-client libmysqlclient-dev sudo apt-get install mysql-server Humm..Thanks for that! Any good documentation for the same would you share ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are