similar to: Outputting strict JSON

Displaying 20 results from an estimated 8000 matches similar to: "Outputting strict JSON"

2009 Sep 12
5
undefined method `^' for "d":String
Hi guys. I''m a freshman on Rails (and Ruby) so I''m sorry if my question is pretty basic, and possible has a vary basic answer. I tried to Google this problem, but a couple of hour after and no solution found, I decided to ask for help here. I have installed ruby 1.9.1p243, Rails 2.3.4, Gem 1.3.5, SQLite version 3.6.18 (I think this is all that it''s needed). I´m reading
2009 Feb 20
6
rails 2.2.2 does not work with ruby 1.9.1
Hi everyone! I''ve installed new Ruby 1.9.1 from sources (http://www.ruby-lang.org/en/), then "gem install rails", everything was ok during installation, all tests ("make test") were ok too. After all, i wanted to create my new RoR project, but I could not start it. Plz help me Here is my terminal: [renat@localhost rails]$ rails mysite create create
2009 Nov 24
2
Deploying Error: undefined method 'generate_best_match='
Hey guys, I''m quite new to rails and experiencing some problems with the deployment of my application to a web server. I am using github, can connect to the server, "cap deploy:check" and :setup run fine, but when I want to use "deploy:cold" or migrate my database (rake RAILS_ENV=production db:migrate) I get this error: rake aborted! undefined method
2008 Jun 02
3
Undefined method `store_full_sti_class=' for ActiveRecord::Base:Class (NoMethodError)
Hi everyone, I created a new demo app with ''rails demo'' and proceeded to try and launch the server with ''ruby scripts/server''. I get the following stack: C:\railsProj\demo>ruby script/server => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to
2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- src/app/controllers/application_controller.rb | 2 +- src/config/environment.rb | 2 +- src/config/initializers/new_rails_defaults.rb | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb
2008 Jun 09
3
Rails 2.1 and ddatetime_select
I''ve updated to 2.1 and am continuing to have issues with datetime_select helpers which worked fine previously. Example: <% form_remote_tag(:url => { :controller => ''notes'', :action => :add_booking_note_ajax, :id => @booking},
2003 Jul 09
3
`acting' on variables
Dear list, How can one "from within a function" act on these variables ("outside" a function) that were given as arguments. If I have e.g. this beginning of a function: foo <- function(tiro){ app.tiro <- 3 * tiro [...] } How can I from within the curly brackets e.g. concatenate the app.tiro to the particular variable I passed as the argument `tiro' ? What is
2012 Apr 30
1
Dovecot dsync mail replication issues
Hi, I'm trying to set up some dsync based replication between two hosts on my network. The current topology is a single server running Postfix with a single dovecot installation with a Maildir per user (only 4 users including myself). No NFS, just local system users on ext4. I am only using system users, ie no virtual users. I am using dovecot deliver to deliver mails into the
2008 Jun 03
1
Rails 2.1 and default setting of Partial updates
I just updated to 2.1 and created a new, empty project. According to the docs I''ve seen, including: http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-partial-updates The file config/initializers/new_rails_defaults.rb has the default setting for partial updates and just needs to be edited: "Note: There''s currently a config/initializers/new_rails_defaults.rb
2010 Jun 13
4
internal server error(500) when attempting to sendmail
Hello, I have an application that, when you create an appointment it sends an email to the client to say someone has just booked. Locally, this works fine (i''m just using sendmail) Locally - all email tests have come through - no problem. However - when I copy all the files onto the server and attempt to create a booking, it comes up with the 500 page. The error below if taken from my
2010 Jun 08
8
rails, ajax, json, and script
Could someone please demonstrate the code to send both json (or xml) AND javascript (to be executed) in a single Ajax request? Is this even possible? -- 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 email to
2012 Jan 04
5
a quick question about "rbinom"
Hello, I have the following code using rbinom, but I don't understand what *"+1"* means in the code. Could someone help? Thanks so much, > X1<-c("A","B")[rbinom(n,1,0.6)+1] > X2<-c("C","D")[rbinom(n,1,0.1)+1] -- View this message in context: http://r.789695.n4.nabble.com/a-quick-question-about-rbinom-tp4262977p4262977.html Sent
2008 Dec 02
2
ActiveResource - xml and json format return different results
Hi, I''m using Rails 2.1.2. and I wanted to switch ActiveResource format to JSON and thought that it will work smoothly, but unfortunately it wasn''t the case. XML and JSON formats generate different objects: XML version #<User:0xb7658440 @prefix_options={}, @attributes={"created_at"=>Mon Nov 28 11...}> JSON version #<User:0xb746af5c @prefix_options={},
2011 Aug 17
2
JSON PUT/POST/UPDATE
Hey all... I''m building a RESTful JSON API and I find myself writing this: JSON.parse(request.body.read) ...over and over in every controller action that accepts JSON in the request body (which is a lot of actions). Does rails have a better built-in way to keep the code more DRY? Or should I solve that somehow myself? Thanks, Cainus -- You received this message because you are
2010 Oct 06
6
Error on running unity test: "no such file to load -- 'active_record/version'"
Hi folks! I''ve been experimenting an error messagem when I try to run unity test in any model of my project. Here it is: /home/fabricio/shopcell/config/environment.rb:1:in `require'': no such file to load -- active_record/version (LoadError) from /home/fabricio/shopcell/config/environment.rb:1 from ./test/test_helper.rb:2:in `require'' from ./test/test_helper.rb:2
2007 Dec 07
2
[ActiveSupport] Patches needing review: re-organization of #to_query methods, preservation of XML/JSON content-type
Just a quick pointer to some ActiveSupport patches hoping for reviews: Puts Array#to_query and Object#to_query in the right places in ActiveSupport - http://dev.rubyonrails.org/ticket/10395 Preserve user-specified content type for XML and JSON rendering (currently it''s overridden and set to Mime::XML/Mimi::JSON - http://dev.rubyonrails.org/ticket/10388 Oh and a tiny patch for
2015 Feb 28
7
Looking for a life-save LVM Guru
On 2/27/2015 4:52 PM, Khemara Lyn wrote: > I understand; I tried it in the hope that, I could activate the LV again > with a new PV replacing the damaged one. But still I could not activate > it. > > What is the right way to recover the remaining PVs left? take a filing cabinet packed full of 10s of 1000s of files of 100s of pages each, with the index cards interleaved in the
2015 Feb 28
9
Looking for a life-save LVM Guru
Dear All, I am in desperate need for LVM data rescue for my server. I have an VG call vg_hosting consisting of 4 PVs each contained in a separate hard drive (/dev/sda1, /dev/sdb1, /dev/sdc1, and /dev/sdd1). And this LV: lv_home was created to use all the space of the 4 PVs. Right now, the third hard drive is damaged; and therefore the third PV (/dev/sdc1) cannot be accessed anymore. I would like
2005 Mar 31
5
Outputting XHTML strict
I''m trying to get a page to validate as XHTML Strict, and I''ve gotten everything fixed except for one <textarea> that Rails is generating. <textarea cols="40" id="estcomment_comment" name="estcomment[comment]" rows="10" wrap="virtual"></textarea> This tag is being called in my view with <%=
2007 Dec 21
4
Action Web Service and rails 2.0
Hi, Just thought I''d share what we did to get action web service to go on rails 2.0 http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/ Fred --~--~---------~--~----~------------~-------~--~----~ 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