[Rails] Auto refresh the drop-down

2012-10-09 Thread Ram
I have an option in dropdown like "Add new option" written using grouped_collection_select. And when user clicks on the "Add new option". A pop up dialog appears to add a new value. And when I click create it hits the database and adds the value to the db. But It never updates the dropdown

[Rails] ruby game project

2012-10-09 Thread machina kunagiri
hi guys im planning to make my first fully coded ruby game and i need some help im not using any special rpg makers or anything should the code for the hero be like this Class hero draw hero.jpg set @hero_hp 50 set @hero_mp 23 set @hero_tp 0 if right key pressed move right spd = 4 if left key pre

[Rails] [Win7 x64] Encoding::UndefinedConversionError after installing when using gem and rails

2012-10-09 Thread Malte Glüsenkamp
Hello, after installing the RailsInstaller i got the following error: C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb:57:in `exist?': "\x81" to UTF-8 in conversion from Windows-1252 to UTF-8 (Encoding::UndefinedConversionError) from C:/RailsInstaller/Ruby1.9.3

[Rails] Working In Iframe for long time - Session timeout problem

2012-10-09 Thread Steve Babs
Hi All, In my project I am using iframe popup box to load url that I need to locate. In that users can navigate all pages with in iframe only. Here User may not reload the parent window. In this case, Session automatically timedout. Please help me to reset session timeout ,even users working i

Re: [Rails] Re: how to use rails debug ?

2012-10-09 Thread KUL KING
I am not able to help you in integration testing as I have never done it. Anybody please help him. On Wed, Oct 10, 2012 at 11:45 AM, Fahim Patel wrote: > i have one more problem can u solve this... > This question is related to cucumber and capybara. > > I am handling three form in one page . It

[Rails] Re: how to use rails debug ?

2012-10-09 Thread Fahim Patel
i have one more problem can u solve this... This question is related to cucumber and capybara. I am handling three form in one page . It means i am handling three model. this three are connected to each other using association. I am using nested form concept. In development stage working perfect

[Rails] Rubymine Install Missing Gems

2012-10-09 Thread Avi
Hello All, I am using JRuby in Linux Ubuntu 10.10. In Rubymine IDE, I am getting as "Install Missing Gems" link. After clicking on that link, I am getting this error :- Installing pg (0.14.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extens

Re: [Rails] Re: how to use rails debug ?

2012-10-09 Thread KUL KING
The answer of first and third question is yes. It also works on console. No new tool or commands needed to be learned. On Wed, Oct 10, 2012 at 11:09 AM, Fahim Patel wrote: > asw > > 1.Is pry is best for debugging in your experience . > > 2 .Can it work same as we work on console ? or we have t

[Rails] Re: how to use rails debug ?

2012-10-09 Thread Fahim Patel
asw 1.Is pry is best for debugging in your experience . 2 .Can it work same as we work on console ? or we have to learn some new command ? 3. Can we debug our controller and model methods line by line ? I know i have lots of questions ? Just give me one line answer which i can understood.

Re: [Rails] how to use rails debug ?

2012-10-09 Thread KUL KING
You should use "pry" gem. It is much easier. On Wed, Oct 10, 2012 at 10:57 AM, Fahim Patel wrote: > I wish to debugging my app.I install gem and start my console by using > --debug option . > But i don't know how to use it. > > Give me some helpful starting for core . > I search and get some g

[Rails] how to use rails debug ?

2012-10-09 Thread Fahim Patel
I wish to debugging my app.I install gem and start my console by using --debug option . But i don't know how to use it. Give me some helpful starting for core . I search and get some good pages, but when i fire commands ,not working. How trace methods ? How to trace variable ? Thanks R

Re: [Rails] Error

2012-10-09 Thread Rameshwar Vyevhare
Yesterday, I got e-mail from heroku, they people updating postgres database after this you need to run your migration. That might be cause of your error. -- With Regards, Rameshwar NOTICE: The information contained in this electronic mail message and any attachments hereto is intended only fo

Re: [Rails] Error

2012-10-09 Thread Rameshwar Vyevhare
Yesterday, I got e-mail from heroku, they people updating postgres database after this you need to run your migration. That might be cause of your error. -- With Regards, Rameshwar NOTICE: The information contained in this electronic mail message and any attachments hereto is intended only

[Rails] marshal vs yaml

2012-10-09 Thread John Merlino
I notice how Rails makes heavy use of YAML serialization, but a lot of the Ruby literature I come across places emphasis on Marshal. One powerful technique with marshal is the marshal_dump and marshal_load hooks used to customize storing and retrieving object states. For example, let's say I ha

[Rails] Re: ckeditor_rails gem install issue

2012-10-09 Thread Dave Castellano
Colin Law wrote in post #1079128: > On 9 October 2012 18:28, Dave Castellano wrote: >> Hi, >> >> I'm using rails 3.2 with ckeditor_rails gem. >> >> Followed instructions on github.com/tsechingho/ckeditor-rails... > > That link does not work, for me at least. > > Colin Sorry, try this... https://

[Rails] Awesome libraries

2012-10-09 Thread Jay Damodaran
Hey guys, Filepicker just released some of their rails libraries for user content handling. https://github.com/Filepicker/filepicker-rails Definitely worth checking out. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ru

Re: [Rails] Re: Select from 3 table! has_many throug

2012-10-09 Thread Colin Law
On 9 October 2012 18:53, Eugeni Kurtov wrote: > Colin Law wrote in post #1079115: >> On 9 October 2012 17:29, Eugeni Kurtov wrote: >>> has_many :players, :through => :participations >>> >>> end >>> >>> class Participation < ActiveRecord::Base >>> attr_accessible :meeting_id, :player_id >> >>

Re: [Rails] ckeditor_rails gem install issue

2012-10-09 Thread Colin Law
On 9 October 2012 18:28, Dave Castellano wrote: > Hi, > > I'm using rails 3.2 with ckeditor_rails gem. > > Followed instructions on github.com/tsechingho/ckeditor-rails... That link does not work, for me at least. Colin > Added //= require ckeditor-jquery to > app/assets/stylesheets/application

[Rails] Re: Select from 3 table! has_many throug

2012-10-09 Thread Eugeni Kurtov
Colin Law wrote in post #1079115: > On 9 October 2012 17:29, Eugeni Kurtov wrote: >> has_many :players, :through => :participations >> >> end >> >> class Participation < ActiveRecord::Base >> attr_accessible :meeting_id, :player_id > > You need belongs_to metting and player here. Sure thing, s

[Rails] ckeditor_rails gem install issue

2012-10-09 Thread Dave Castellano
Hi, I'm using rails 3.2 with ckeditor_rails gem. Followed instructions on github.com/tsechingho/ckeditor-rails... Added //= require ckeditor-jquery to app/assets/stylesheets/application.js Now I get a "couldn't find file 'ckeditor-jquery'" error and sure enough, it doesn't exist. I thought it sh

[Rails] Re: Getting email replies with Net::IMAP

2012-10-09 Thread Gabe S.
There's a Ruby gem to handle this, released by Github: https://github.com/github/email_reply_parser The Ultimation wrote in post #832834: > Marnen Laibow-Koser wrote: > >> You just answered your own question. There's no single standard for >> quoting text, so how could there be anything in the I

Re: [Rails] Select from 3 table! has_many throug

2012-10-09 Thread Colin Law
On 9 October 2012 17:29, Eugeni Kurtov wrote: > class Place < ActiveRecord::Base > attr_accessible :address, :city, :name, :description > has_many :meetings > end > > Class Meeting < ActiveRecord::Base > attr_accessible :start_at, :place_id, :title, :end_at > > belongs_to :place > has_ma

[Rails] Select from 3 table! has_many throug

2012-10-09 Thread Eugeni Kurtov
class Place < ActiveRecord::Base attr_accessible :address, :city, :name, :description has_many :meetings end Class Meeting < ActiveRecord::Base attr_accessible :start_at, :place_id, :title, :end_at belongs_to :place has_many :participations has_many :players, :through => :participatio

Re: [Rails] Unablt to send mails in my server

2012-10-09 Thread keerthi priya
now i am getting this error Timeout::Error (execution expired): /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/timeout.rb:64:in `open' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:551:in `do_start' /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/net/smtp.rb:551:in `do_start'

[Rails] Form Design issue - How to handle a parent association input..

2012-10-09 Thread Erwin
I have an Event Model with a parent Place association class Event < ActiveRecord::Base belongs_to :place accepts_nested_attributes_for :place attr_accessible :place_attributes In a new event registration form, the user should have the choice to : - select from an existing Place - enter a ne

Re: [Rails] Drop Down Menu in Navigation Bar?

2012-10-09 Thread Walter Lee Davis
Have you looked at the CSS Menu Action (built into Freeway)? There's a nice bit about it in the Freeway manual. Walter On Oct 9, 2012, at 10:18 AM, fuzzy wrote: > I would like to design a drop down menu to use in my navigation bar. > > I know that twitter bootstrap has one, but I would like to

[Rails] Drop Down Menu in Navigation Bar?

2012-10-09 Thread fuzzy
I would like to design a drop down menu to use in my navigation bar. I know that twitter bootstrap has one, but I would like to design my own since many of the sites that are using twitter bootstrap are beginning to look alike. Does anyone know of a good tutorial on how to go about designing such

Re: [Rails] Error

2012-10-09 Thread Colin Law
On 9 October 2012 14:18, Maddy wrote: > > Hi folks, > Good Evening, > > After pushed my project into heroku server, i got an errror > ActiveRecord::StatementInvalid (PG::Error: ERROR: relation "homes" > does not exist > > Please look the attachment . Instead of sending an attachment (whic

Re: [Rails] Unablt to send mails in my server

2012-10-09 Thread keerthi priya
i can able to send mails from by development mode the only issue is from production mode On Tue, Oct 9, 2012 at 6:52 PM, keerthi priya wrote: > @ > Jordon Bedwel > i am using gmail smtp. > > > On Tue, Oct 9, 2012 at 2:02 PM, Jordon Bedwell wrote: > >> On Tue, Oct 9, 2012 at 3:17 AM, keerthi priy

Re: [Rails] Unablt to send mails in my server

2012-10-09 Thread keerthi priya
@ Jordon Bedwel i am using gmail smtp. On Tue, Oct 9, 2012 at 2:02 PM, Jordon Bedwell wrote: > On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya > wrote: > > hi all i am trying to setup mail option in my app. and when i am trying > to > > send mails i got this error in my production log > > > > > >

[Rails] Error

2012-10-09 Thread Maddy
Hi folks, Good Evening, After pushed my project into heroku server, i got an errror ActiveRecord::StatementInvalid (PG::Error: ERROR: relation "homes" does not exist Please look the a

[Rails] Re: Facing problem to start rails server on my windows machine.

2012-10-09 Thread Samir
Hi Friends. My problem solved. I have uninstalled everything I had previously. Then I downloaded the rails installer kit from www.railsinstaller.org . just saved the file and installed. just some next next procedure. its working properly now. Thanks http://railsinstaller.org/ team for such a ki

Re: [Rails] Change my timezone

2012-10-09 Thread Tom Meinlschmidt
http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html find out or choose nearest tom On Oct 9, 2012, at 13:14 , Maddy wrote: > Hi folks, > > Good evening, > > How can I changed my timezone default( config.time_zone = 'Central Time (US & > Canada)' ) into Sweden timezone.? > > Plea

[Rails] Change my timezone

2012-10-09 Thread Maddy
Hi folks, Good evening, How can I changed my timezone default( config.time_zone = 'Central Time (US & Canada)' ) into Sweden timezone.? Please advise. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

Re: [Rails] Unablt to send mails in my server

2012-10-09 Thread Jordon Bedwell
On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya wrote: > hi all i am trying to setup mail option in my app. and when i am trying to > send mails i got this error in my production log > > > OpenSSL::SSL::SSLError (hostname was not match with the server certificate): > __SNIP__ > my app runs on rails

Re: [Rails] Unablt to send mails in my server

2012-10-09 Thread Colin Law
On 9 October 2012 09:17, keerthi priya wrote: > hi all i am trying to setup mail option in my app. and when i am trying to > send mails i got this error in my production log > > > OpenSSL::SSL::SSLError (hostname was not match with the server certificate): Googling for that error message yields m

[Rails] Unablt to send mails in my server

2012-10-09 Thread keerthi priya
hi all i am trying to setup mail option in my app. and when i am trying to send mails i got this error in my production log OpenSSL::SSL::SSLError (hostname was not match with the server certificate): /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/openssl/ssl-internal.rb:123:in `post_connec