Displaying 20 results from an estimated 900 matches similar to: "JSON::ParserError in controller"
2013 Sep 04
7
Shift from mongrel to webrick
Hi Everyone
I have installed mongrel gem and in my dev I can able to run my app on
mongrel but If I want to shift to webrick how can I shift easily with out
uninstalling the mongrel gem
Thanks in advance
--
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
2013 Oct 21
6
I think I've found a mistake in Rails tutorial
At the point of this section
*http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*<http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure>
clicking the "Create my account" button on the signup form shows the
following image at
<http://ruby.railstutorial.org/images/figures/signup_failure_rails_4.png>
According to the tutorial, I must modify
2013 Feb 07
11
Rails change default time zone.
Hello everyone,
I am using rails 3.2.8.
I want to change time zone to New York time.
I changed following, but didn''t work
#config/application.rb
config.time_zone = ''Eastern Time (US & Canada)''
config.active_record.default_timezone = ''Eastern Time (US & Canada)''
If am wrong please clarify.
Thank You!
--
You received this message
2013 Feb 11
5
split dates array with take_while does not work ?
I wonder why ruby core method ''take_while'' does not work as expected in the
below Rails console example:
irb(main):003:0> arr = []
=> []
irb(main):004:0> arr << Date.today - 15.days
=> [Sun, 27 Jan 2013]
irb(main):005:0> arr << Date.today - 25.days
=> [Sun, 27 Jan 2013, Thu, 17 Jan 2013]
irb(main):006:0> arr << Date.today
=> [Sun, 27
2013 Feb 03
4
Create a helper for models and views?
Hi!
If I have a method that is useful in both models and in views, where would
be the appropriate place to put it?
The method in question just takes two dates as strings, tries to parse them
and returns all dates in the range between them. It also takes care of the
issues when the dates are badly formatted etc etc..
This method is being used in several models (so a simple class method in
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys,
I wanted to fetch some info from webpage and use it in my db. I read
hpricot is one way to do it. But the problem is I''m unable to use it
with my app. For some reason after successfully installing hpricot it
fails when I try to use it in the rails console.
I''ve been trying to fix this for the last four-five days. I''m stumped !
I tried re-installing everything
2009 Nov 06
1
JSON::ParserError
Hi all.....
I am using Json 1.1.7
When I try to parse with the help of it, it gives me error like "618:
unexpected token at ''Error: you are requesting an invalid URL.''"
Help me out of it..
Thanks.....
--
Posted via http://www.ruby-forum.com/.
2012 Aug 31
5
Question1 Cucumber Rails
can we write multiple background in one feature file....?
can we write multiple feature in one feature file.....?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2013 Oct 02
2
When overriding the registration controller from devise, is it possible to access the newly created
I''m trying to create a folder right after a user registers, so I override
the create action on the registration controller (devise) but I don''t know
how to access the newly created user in order to create the folder with
it''s name to upload files later.
So far I''ve got this:
class RegistrationsController < Devise::RegistrationsController
def new
2006 Jan 17
9
Setting layout template in .rhtml
I''ve a single controller -
class ContentController < ApplicationController end
in the app/views/content folder I have quite a few .rhtml files
I need to be able to choose a different layout template to
use in each of these .rhtml files.
i''d like to be able to do something like (which doesn''t work..)
<% layout ''layout1'' %>
Any
2007 Apr 18
1
[Bridge] Bridging multiple tap interfaces
Is it possible to bridge multiple "tap" interfaces in Linux?
When two tap interfaces are bridged together they are unable to "see"
each other but they can bridge to external Ethernet interfaces or the
hosts IP attached on the bridge.
I saw some mention in the mailing list archives on bridging two user
space processes but it didn't seem to have any conclusion. I also
2013 Sep 02
2
Why the string interpolation is not working inside the Nokogiri method `#search` ?
Why the string interpolation is not working inside the Nokogiri method
`#search` ?
require ''nokogiri''
doc = Nokogiri::HTML::Document.parse <<-eotl
<div>
<p>foo</p>
<p>foo</p>
<p>bar</p>
</div>
eotl
doc.class # => Nokogiri::HTML::Document
class Person
attr_accessor :name
end
ram = Person.new
2013 Dec 10
6
Email out of Rescue
I''m trying to set up a means to automatically send an email from certain
parts of troubled code, that is, very often, code that might appear in the
Rescue predicate of a begin.....rescue, so as to track down issues remotely.
Surely there must be a gem for such? If not, how might one construct
something like this in code? TIA, RVic
--
You received this message because you are
2010 Mar 24
10
Trouble starting WEBrick server
Hello every body, I just started working on Ruby on Rails and as i am
progressing I noticed that I can not start my WEBrick server on the
Command prompt. The following are the various error messages that I am
going.
Microsoft Windows [Version 6.0.6002]
C:\Users\imedia2\Desktop\test\helloworld>ruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on
2015 Apr 11
1
XML Parser failing due to cryptic Serial Number.
I set virt-manager in qemu:///system space and tried to add new VM but it didn't proceed. Found out serial in crypic form.
# cat /sys/devices/virtual/dmi/id/product_serial
ÿÿÿÿÿÿÿ
#virt-manager --debugTraceback (most recent call last):
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 225, in _reparse_xml
self._xmlobj = self._build_xmlobj(self._get_raw_xml())
2013 Aug 29
10
Concatenate two arrays
Hello again ruby community!
I just learned how to add two arrays(I know, i know).
My program looked like this
array1=[1,2,3]
array2=[4,5,6]
array_sum=array1+array2
I thought pretty simple stuff, they are combined. However, now i am
looking to define that code as a method and I do not understand how to
create the correct number of arguments, so when the method is called
back it gives me my
2013 Jul 24
12
Want to send password via SMS
Hi I am saving password with hashed_password and salt in table. Now I need
to send those passwords via SMS can it be possible.Kindly give me some
suggestion plz .
Thanks in advance
Cheers
--
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
2013 Aug 27
11
Why NaN.class throws NameError ?
Here is my sample code:
class Foo
Bar = 10
end
Foo::Bar # => 10
Foo::Bar.class # => Fixnum
10.class # => Fixnum
Float::NAN # => NaN
Float::NAN.class # => Float
NaN.class
# uninitialized constant NaN (NameError)
--
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
2013 Jun 07
4
how to add gdal with rails application , now working with gdal 1.8 in ubuntu 10.10
I need to downgrade the gdal version , i am working in remote system so
have only command prompt so if anybudy know how to either downgrade gdal
version from 1.8 to 1.7 or any other way to use gdal in rails app which
have version 2.3.5 and ruby 1.8.7 and ubuntu 10.10
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2013 Jan 15
7
javascript flash messages gem?
Does anybody knows a gem for managing flash messages? I would want to
add messages to the flash div in the client. Bootstrap support is a plus.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group,