Re: [Rails] how to use rails debug ?

2012-10-10 Thread KUL KING
You should use pry gem. It is much easier. On Wed, Oct 10, 2012 at 10:57 AM, Fahim Patel pafa...@gmail.com 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

[Rails] Re: how to use rails debug ?

2012-10-10 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] Re: how to use rails debug ?

2012-10-10 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 pafa...@gmail.com wrote: asw 1.Is pry is best for debugging in your experience . 2 .Can it work same as we work on console ?

[Rails] Rubymine Install Missing Gems

2012-10-10 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

[Rails] Re: how to use rails debug ?

2012-10-10 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

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

2012-10-10 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 pafa...@gmail.com wrote: i have one more problem can u solve this... This question is related to cucumber and capybara. I am handling three form in

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

2012-10-10 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

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

2012-10-10 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

[Rails] Auto refresh the drop-down

2012-10-10 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-10 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

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread KUL KING
You cannot do it without reloading the page. Otherwise you have to do it through AJAX. Create a separate partial for that dropdown and whenever you have to change that dropdown just render it in your js.erb file. On Tue, Oct 9, 2012 at 10:42 PM, Ram connectchan...@gmail.com wrote: I have an

[Rails] Setting locale directories for I18n

2012-10-10 Thread Soichi Ishida
Rails 3.1.3 I would like to apply i18n for my application. Since there are many yml files in config/locales directory, I have made subdirectories so that the maintenance will be easier. For example, config/locales/devise/ date/ top/

Re: [Rails] Rubymine Install Missing Gems

2012-10-10 Thread Norbert Melzer
Have you installed psql Dev packages? Can't remember the actual package name, so you have to look for that name by yourself. Synaptic package manager should be helpful. Am 10.10.2012 08:45 schrieb Avi aavinash.beh...@gmail.com: Hello All, I am using JRuby in Linux Ubuntu 10.10. In Rubymine

Re: [Rails] Re: ckeditor_rails gem install issue

2012-10-10 Thread Colin Law
On 10 October 2012 00:35, Dave Castellano li...@ruby-forum.com wrote: Colin Law wrote in post #1079128: On 9 October 2012 18:28, Dave Castellano li...@ruby-forum.com wrote: Hi, I'm using rails 3.2 with ckeditor_rails gem. Followed instructions on github.com/tsechingho/ckeditor-rails...

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread Jim Ruther Nill
On Wed, Oct 10, 2012 at 5:01 PM, KUL KING kulking...@gmail.com wrote: You cannot do it without reloading the page. Otherwise you have to do it through AJAX. Create a separate partial for that dropdown and whenever you have to change that dropdown just render it in your js.erb file. On Tue,

[Rails] link_to with additional data

2012-10-10 Thread paul h
Hi, rails 3.2.8 I must be missing something basic (and it's been driving me mad) because I am trying to send one additional data attribute to my controller from a link, but I can't seem to get it into the params received by the controller. I have looked around and found answers, but none seem

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread KUL KING
Jim Ruther Nill is right. I didn't read the problem carefully. If you just want to add an option to the dropdown and nothing else then you don't need any separate partial. Just do what Jim Ruther Nill said. On Wed, Oct 10, 2012 at 12:43 PM, Jim Ruther Nill jvn...@gmail.com wrote: On Wed, Oct

[Rails] Re: IDE

2012-10-10 Thread tonypm
I switched to Redcar a while ago and whilst not the fastest tool out of the box, it is actually pretty good. Being still in development, it still has a few bugs. It can be a bit fiddly to set up since it needs a java runtime. It is a bit slow on startup, and can lose track of which window

Re: [Rails] link_to with additional data

2012-10-10 Thread Norbert Melzer
Am 10.10.2012 09:47 schrieb paul h p...@hollyer.me.uk: # I want to be able to display 'bar' on the contacts page = link_to Contacts, contacts_path, :data = {:foo = 'bar'} Should be params= I here if I recall correctly. -- You received this message because you are subscribed to the Google

[Rails] ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-10 Thread Remi B.
Stating the problem: When trying to save my authentication that is related to my customer, there is thrown a ActiveRecord:RecordNotSaved error! My code: Database: * table customers table authentications

[Rails] Re: ckeditor_rails gem install issue

2012-10-10 Thread Dave Castellano
Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.3' gem 'bootstrap-sass', '2.0.0' gem 'bcrypt-ruby', '3.0.1' gem 'faker', '1.0.1' gem 'will_paginate', '3.0.3' gem 'bootstrap-will_paginate', '0.0.5' gem 'ckeditor_rails', :require = 'ckeditor-rails' gem paperclip gem thin # Bundle edge

[Rails] Re: ckeditor_rails gem install issue

2012-10-10 Thread Dave Castellano
Just restarted the server and got the following error: = Booting Thin = Rails 3.2.3 application starting in development on http://0.0.0.0:3000 = Call with -d to detach = Ctrl-C to shutdown server Exiting /Users/dcastellano1/Rails/studyaide0/config/initializers/ckeditor.rb:3:in `top (required)':

Re: [Rails] ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-10 Thread Walter Lee Davis
On Oct 10, 2012, at 7:20 AM, Remi B. wrote: Stating the problem: When trying to save my authentication that is related to my customer, there is thrown a ActiveRecord:RecordNotSaved error! My code:

[Rails] show many calendar in main page

2012-10-10 Thread Igor Pippo
I apologize for my English and for the little knowledge that I have. I have the need to view a calendar of three months, or three different calendars of the three consecutive months in stess page. I'm currently using raw (event_calendar) but I can not pass the dates of the month. can you help me

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread Walter Lee Davis
On Oct 9, 2012, at 1:42 PM, Ram wrote: 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

Re: [Rails] link_to with additional data

2012-10-10 Thread paul h
Hi Norbert, Thanks for the reply, but can you elaborate a little? On Wednesday, October 10, 2012 12:01:54 PM UTC+1, Norbert Melzer wrote: Am 10.10.2012 09:47 schrieb paul h pa...@hollyer.me.uk javascript:: # I want to be able to display 'bar' on the contacts page = link_to Contacts,

Re: [Rails] link_to with additional data

2012-10-10 Thread Jim Ruther Nill
On Wed, Oct 10, 2012 at 11:25 PM, paul h p...@hollyer.me.uk wrote: Hi Norbert, Thanks for the reply, but can you elaborate a little? On Wednesday, October 10, 2012 12:01:54 PM UTC+1, Norbert Melzer wrote: Am 10.10.2012 09:47 schrieb paul h pa...@hollyer.me.uk: # I want to be able to

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

2012-10-10 Thread Robert Walker
Steve Babs wrote in post #1079167: 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

[Rails] validates_format_of :email throws error

2012-10-10 Thread jude
Validates_format_of :email example available on api.rubyonrails.org is throwing errors. class Person ActiveRecord::Base validates_format_of :email, :with = %r\A([^@\s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})\Z/, :on = :create end validates :email, :format = { :with =

Re: [Rails] validates_format_of :email throws error

2012-10-10 Thread Jordon Bedwell
On Wed, Oct 10, 2012 at 8:59 AM, jude judear...@gmail.com wrote: class Person ActiveRecord::Base validates_format_of :email, :with = %r\A([^@\s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})\Z/, :on = :create end validates :email, :format = { :with = %r\A([^@\s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})\Z/, :on =

Re: [Rails] link_to with additional data

2012-10-10 Thread Colin Law
On 10 October 2012 08:47, paul h p...@hollyer.me.uk wrote: Hi, rails 3.2.8 I must be missing something basic (and it's been driving me mad) because I am trying to send one additional data attribute to my controller from a link, but I can't seem to get it into the params received by the

[Rails] start project again with a empty database

2012-10-10 Thread roelof
Hello, I want to start all over again with my project. So I deleted the directory and make the new project. But when I do rails s I see this error message : WARN TCPServer Error: Address already in use - bind(2) Exiting /usr/share/ruby/webrick/utils.rb:85:in `initialize': Address already in

Re: [Rails] start project again with a empty database

2012-10-10 Thread Javier Quarite
On Wed, Oct 10, 2012 at 11:05 AM, roelof rwob...@hotmail.com wrote: Hello, I want to start all over again with my project. So I deleted the directory and make the new project. But when I do rails s I see this error message : WARN TCPServer Error: Address already in use - bind(2) Exiting

Re: [Rails] start project again with a empty database

2012-10-10 Thread Dave Aronson
On Wed, Oct 10, 2012 at 12:05 PM, roelof rwob...@hotmail.com wrote: WARN TCPServer Error: Address already in use - bind(2) That means you've got a Rails server (or something else using the same port) already running. You need to track that down and stop it before you can do anything else with

Re: [Rails] marshal vs yaml

2012-10-10 Thread Dave Aronson
On Tue, Oct 9, 2012 at 10:48 PM, John Merlino stoici...@aol.com wrote: I notice how Rails makes heavy use of YAML serialization, but a lot of the Ruby literature I come across places emphasis on Marshal. Different tools for different purposes. YAML makes it easy for a *human* looking at

Re: [Rails] link_to with additional data

2012-10-10 Thread Matt Jones
On Wednesday, 10 October 2012 06:25:25 UTC-7, paul h wrote: Hi Norbert, Thanks for the reply, but can you elaborate a little? On Wednesday, October 10, 2012 12:01:54 PM UTC+1, Norbert Melzer wrote: Am 10.10.2012 09:47 schrieb paul h pa...@hollyer.me.uk: # I want to be able to display

Re: [Rails] start project again with a empty database

2012-10-10 Thread roelof
Thanks, I can now move forward on my project Roelof Op woensdag 10 oktober 2012 18:15:39 UTC+2 schreef Dave Aronson het volgende: On Wed, Oct 10, 2012 at 12:05 PM, roelof rwo...@hotmail.com javascript: wrote: WARN TCPServer Error: Address already in use - bind(2) That means

[Rails] Re: ckeditor_rails gem install issue

2012-10-10 Thread Dave Castellano
Got it! Accidentally had not removed files from old ckeditor gem! Thanks and sorry for posting stupid mistake... -- 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 post to this group, send

[Rails] Re: Auto refresh the drop-down

2012-10-10 Thread chandru c.
Jim ruther Nill wrote in post #1079179: On Wed, Oct 10, 2012 at 5:01 PM, KUL KING kulking...@gmail.com wrote: 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

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread Walter Lee Davis
On Oct 10, 2012, at 2:13 PM, chandru c. wrote: Jim ruther Nill wrote in post #1079179: On Wed, Oct 10, 2012 at 5:01 PM, KUL KING kulking...@gmail.com wrote: 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

[Rails] back /front page question

2012-10-10 Thread roelof
Hello, Imaging I want to use another layout for show and one for edit and new. Must I then make two different application layouts with 2 css files or can I do that with 1 layout file and 1 css file ? Roelof -- You received this message because you are subscribed to the Google Groups

[Rails] Re: back /front page question

2012-10-10 Thread Johann Christoph Gorzny
hello, individual actions can render specific layouts. def show render(layout: layouts/show) end def edit render(layout: layouts/edit) end def new render(layout: layouts/new) end but i dont know how to avoid double rendering -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Auto refresh the drop-down

2012-10-10 Thread Ramesh C.
Walter Davis wrote in post #1079286: On Oct 10, 2012, at 2:13 PM, chandru c. wrote: rubyonrails-talk+unsubscr...@googlegroups.com. Jim, val2 = document.getElementById(item_id).value alert Item saved + msg.name I guess here I have to add changes to make dropdown refresh I'm not

[Rails] MongoDB and Rails 3

2012-10-10 Thread Thiago Rossi
Hi! I am quite new to Ruby on Rails and I am loving it so far. I have to work on a project with MongoDB and I noticed a few tutorials tell us to generate a new app without the ActiveRecord. I wonder if it's the best solution… Why isn't a good idea to use ActiveRecord with Mongo? Maybe in the

[Rails] How do we get the End of Line date for the gems which we are using Ruby on Rails?

2012-10-10 Thread RoR Uk
Hi All, I want to know the EOL date for the below gems for ROR. Can anyone help me how to find the EOL dates - authlogic - will paginate - oauth-plugin 0.3.14 - statistics 0.1.1 - YUI - cucumber 0.6.4 - cucumber-rails 0.3.0 - rspec 1.3.0 - rspec-rails 1.3.2 -

Re: [Rails] Convert Date to DateTime

2012-10-10 Thread cash22
I think it's date_obj.to_datetime On Tuesday, June 2, 2009 12:54:48 AM UTC+1, Rick DeNatale wrote: On Mon, Jun 1, 2009 at 7:44 PM, David dly...@gmail.com javascript: wrote: The method I am using to convert Date objects to DateTime objects is: date_obj = DateTime.parse(Date.to_s)

Re: [Rails] How do we get the End of Line date for the gems which we are using Ruby on Rails?

2012-10-10 Thread Colin Law
On 10 October 2012 10:39, RoR Uk railsuk...@gmail.com wrote: Hi All, I want to know the EOL date for the below gems for ROR. Can anyone help me how to find the EOL dates What do you mean by EOL date (presumably End Of Line, but what do you mean by that)? Colin authlogic will paginate

[Rails] Re: How do we get the End of Line date for the gems which we are using Ruby on Rails?

2012-10-10 Thread Frederick Cheung
On Wednesday, October 10, 2012 10:39:10 AM UTC+1, RoR Uk wrote: Hi All, I want to know the EOL date for the below gems for ROR. Can anyone help me how to find the EOL dates The majority of these aren't commercially supported gems - They'll be maintained until the current maintainers

[Rails] Re: MongoDB and Rails 3

2012-10-10 Thread Frederick Cheung
On Wednesday, October 10, 2012 5:03:25 PM UTC+1, Thiago Rossi wrote: Hi! I am quite new to Ruby on Rails and I am loving it so far. I have to work on a project with MongoDB and I noticed a few tutorials tell us to generate a new app without the ActiveRecord. I wonder if it's the best

Re: [Rails] link_to with additional data

2012-10-10 Thread paul h
On Wednesday, October 10, 2012 2:30:57 PM UTC+1, jim wrote: On Wed, Oct 10, 2012 at 11:25 PM, paul h pa...@hollyer.me.ukjavascript: wrote: Hi Norbert, Thanks for the reply, but can you elaborate a little? On Wednesday, October 10, 2012 12:01:54 PM UTC+1, Norbert Melzer wrote: Am

Re: [Rails] link_to with additional data

2012-10-10 Thread paul h
On Wednesday, October 10, 2012 5:38:15 PM UTC+1, Matt Jones wrote: On Wednesday, 10 October 2012 06:25:25 UTC-7, paul h wrote: Hi Norbert, Thanks for the reply, but can you elaborate a little? On Wednesday, October 10, 2012 12:01:54 PM UTC+1, Norbert Melzer wrote: Am 10.10.2012

Re: [Rails] link_to with additional data

2012-10-10 Thread paul h
On Wednesday, October 10, 2012 3:28:45 PM UTC+1, Colin Law wrote: On 10 October 2012 08:47, paul h pa...@hollyer.me.uk javascript: wrote: Hi, rails 3.2.8 I must be missing something basic (and it's been driving me mad) because I am trying to send one additional data

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread Walter Lee Davis
On Oct 10, 2012, at 4:07 PM, Ramesh C. wrote: Walter Davis wrote in post #1079286: On Oct 10, 2012, at 2:13 PM, chandru c. wrote: rubyonrails-talk+unsubscr...@googlegroups.com. Jim, val2 = document.getElementById(item_id).value alert Item saved + msg.name I guess here I have

[Rails] Consuming RESTful api with activeResource

2012-10-10 Thread arturo drlt
Hi, I'm being asked to use this api to retrieve the data because the ror application won't have any database to store the users information, the database will only be accessed by this api. For example for creating a new user I have to send a post request with a json format to the url:

Re: [Rails] How do we get the End of Line date for the gems which we are using Ruby on Rails?

2012-10-10 Thread Jeffrey L. Taylor
Quoting Colin Law clan...@googlemail.com: On 10 October 2012 10:39, RoR Uk railsuk...@gmail.com wrote: Hi All, I want to know the EOL date for the below gems for ROR. Can anyone help me how to find the EOL dates What do you mean by EOL date (presumably End Of Line, but what do you

[Rails] How to get the value of association column name in ruby on rails?

2012-10-10 Thread Sri ganesh K
If i have two models like Question and Answer. Question has three columns like question_id, question_type, question_text and Answer has three values answer_id, question_id, answer_text. I am creating form for the Answer model. Example: %= f.text_field :question_id %. %= f.hidden_field

[Rails] Calling coffeescript from view

2012-10-10 Thread Dave Castellano
I am using a WYSIWYG ckeditor in my rails project (ckeditor_rails gem). I am trying to figure out how to apply different toolbar configs on different pages. Here is the setup... In the view I have %= text_area_tag id=ck_a, @formatted_question[:anno_a], :class='ckeditor' % I have created a

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread Jim Ruther Nill
On Thu, Oct 11, 2012 at 7:47 AM, Walter Lee Davis wa...@wdstudio.comwrote: On Oct 10, 2012, at 4:07 PM, Ramesh C. wrote: Walter Davis wrote in post #1079286: On Oct 10, 2012, at 2:13 PM, chandru c. wrote: rubyonrails-talk+unsubscr...@googlegroups.com. Jim, val2 =

Re: [Rails] Auto refresh the drop-down

2012-10-10 Thread Walter Lee Davis
On Oct 10, 2012, at 7:59 PM, Jim Ruther Nill wrote: On Thu, Oct 11, 2012 at 7:47 AM, Walter Lee Davis wa...@wdstudio.com wrote: On Oct 10, 2012, at 4:07 PM, Ramesh C. wrote: Walter Davis wrote in post #1079286: On Oct 10, 2012, at 2:13 PM, chandru c. wrote:

Re: [Rails] Business Object Architect

2012-10-10 Thread Walther Diechmann
As much as I understand the dire circumstances of our global maltreated economy prompting extraordinary measures, I am still to uncover the motives luring peoples searchers into posting their particulars on a mail-list preoccupied with issues pertaining to Ruby On Rails!? Cheers Walther Den