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
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.
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 ?
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
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
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
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
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
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
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
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 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/
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
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...
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,
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
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
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
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
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
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
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)':
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:
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
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
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,
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
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
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 =
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 =
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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)
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
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
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
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
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
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
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
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:
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
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
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
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 =
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:
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
60 matches
Mail list logo