Displaying 20 results from an estimated 30000 matches similar to: "Best way to send JSON request/get a response from controller?"
2012 Jan 17
0
What is the best way to validate a json object? (POST request)
I must create a class (JobClass) and include ActiveModel::Validations?
and then
valided = JobClass.new(params).valid?
The JSON body :
http://pastebin.com/TwRbydmq
I can not create rules corresponding to the validation of the field
"method" ... It can be "concat" or "split" but it is not the first
level.
How can I do?
Thanks
--
Posted via
2006 Jul 03
1
help getting plugin to work
Hi,
I want to create a plugin that allows easy use of the Yahoo! UI
library similar to the prototype.js and scriptaculous helpers that
come packaged with rails.
just one line in plugins/yui/init.rb
require ''yui_helper''
a little more in plugins/yui/lib/yui_helper.rb
module ActionView
module Helpers
module YuiHelper
def yui_form_remote_tag(options = {})
2007 May 30
3
how to create a simple DHTML dialog
I am looking to create a simple dialog window like this on a page:
http://developer.yahoo.com/yui/examples/container/simpledialog/2.html
I know scriptaculous comes with Rails, not YUI, but I can''t find
anything similar there. Is there any shortcut to doing this with
existing plugins or core stuff?, or must I download another toolkit?
thanks
Sam
2006 May 24
5
best way to return JSON?
I''m using Ajax.Updater to update a select element, and have just discovered
that IE doesn''t like having its innerHTML set. I figure instead of a bunch
of option tags I can return JSON and parse it to add the options, but I''m
not quite sure of the best way to do this.... or any way to do it really :)
Could someone point this out to me? Or am I using a totally antiquated
2010 Aug 03
0
curl works when testing JSON response but the functional and integration tests do not work.
I am trying to test an action which is supposed to give a json
response The url goes something line /blah/model.json
When I POST to that URL using curl like this
curl -H "Content-Type:application/json" -H "Accept:appn/json" -d
"data" http://localhost:3000/blah/model.json it works just fine.
In my test functional test I have this method
def post_json (data)
2020 Nov 09
0
JSON response track title not encoded to UTF8
Good evening,
On Sun, 2020-11-08 at 20:04 +0000, Γιαννης Φροντιστηριο wrote:
> Good evening to you too,
>
> From the <ip-address>:8000/server_version.xsl , I get that the installed icecast2 version is 2.4.4.
> The source client I am currently is Mixxx version 2.2.4 - for Windows 64bit.
Ok.
> Would you say I should redirect my question to the support team of the Mixxx
2018 Feb 20
1
get_auth_event_server: Failed to find 'auth_event' registered on the message bus to send JSON authentication events to: NT_STATUS_OBJECT_NAME_NOT_FOUND
samba-4.7.5
debian 9.3
installed as join dc in existing domain on samba 4.1
everiting look like working
but some windows member stop to have access to shares on dc by ip
connect by \\full_domain_name work
there some log in samba dc
[2018/02/20 15:15:00.652467, 4]
../auth/auth_log.c:860(log_successful_authz_event_human_readable)
Successful AuthZ: [DCE/RPC,ncacn_np] user [NT
2020 Nov 08
0
JSON response track title not encoded to UTF8
Good evening,
On Sat, 2020-11-07 at 22:05 +0000, ??????? ???????????? wrote:
> I would like for icecase status json xls to be able to provide the
> currently song title playing encoded in utf8. I have a problem getting
> the song titles / artist names for greek or japanese characters. Check
> below status-json.xsl part, for an example :
>
>
2020 Nov 07
2
JSON response track title not encoded to UTF8
I would like for icecase status json xls to be able to provide the currently song title playing encoded in utf8. I have a problem getting the song titles / artist names for greek or japanese characters. Check below status-json.xsl part, for an example :
2011 Feb 03
0
Correct way to exclude attributes from json serialization
Hi
I''m using Mongoid and Rails 3, and I want to serialize one of my
mongoid documents to json for publishing via a controller, e.g.
class ReportController < ApplicationController
respond_to :json
def show
report = Report.where(:report_id => params[:id]).first
respond_with report
end
end
This works ok, but pushes out every attribute on the document
2007 Apr 12
6
JSON handling in Prototype 1.5.1_rc2
Hi,
I try to use the JSON encoder/decoder on JSON string receive from an
HTTPRequest.
And it failed to handle characters with accents (çéèà...) giving me an
parsing Exception.
I think because the convertion from string to object is a simple
eval !
This make Protoype unusable for non americain characterset
application ! Or I miss something !
Sad !
Constant
2008 Aug 10
1
Prototype, JSON and headers
Hi everyone.
I love JSON and using Prototype has help me reduce the code to handle
AJAX responses.
But one thing keeps me confused and sometimes even frustrated.
I don''t really understand what is going on with the headers, so if
someone could take some time to explain what is going on, I (and
probably a lot more people) would be very thankful.
The thing is this. On my local server (Mac OS
2020 Nov 08
2
JSON response track title not encoded to UTF8
Good evening to you too,
From the <ip-address>:8000/server_version.xsl , I get that the installed icecast2 version is 2.4.4.
The source client I am currently is Mixxx version 2.2.4 - for Windows 64bit.
Would you say I should redirect my question to the support team of the Mixxx program ?
If you would like any more info, please feel free to ask. I appreciate your help and patience.
All the
2010 May 30
0
Http Rest call and JSON response
I am trying to call remote server rest api , the response type of call
is json data. plz give me tips how to do this . I am new in rails .
--
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 Sep 18
4
"best practices" for Rails serving RESTful JSON services for use by AngularJS, Ember.js, etc.
I''ve been writing a gem to implement and extend common controller
functionality so that Rails can be used with Javascript frameworks like
AngularJS (which we are using), Ember.js, etc. in such a way that the user
doesn''t have to tweak a a bunch of rails g controller boilerplate code to
provide services for use in these frameworks that in turn would require
various changes to
2010 Jun 24
0
Rails3: render_to_string of a .html.erb when request is a json request raises MissingTemplate error
I''ve the following situation (which actually works in Rails 2.3.8 and
this is a result of the migration of our app to rails3):
I have a partial which is rendered a few times (imagine tr''s in a
table). On the clientside there''s a script that does a json request
for a specific row (jQuery + ajax dataType: ''json'' and type: ''POST'')
In
2011 Mar 03
0
application/json request defaults?
I ran into a strange problem when moving a locally working app to a
hosted server.
We have a phone app sending json requests via POST to the rails app.
When doing this on the local system everything comes through as
application/json
When I moved it to the host I was having Authenticity Token errors. I
realized that our phone app was not setting the correct content-type
to application/json
2006 May 22
0
horizontal, multi-level fly-out menu
Hello everyone,
Did anyone of you ever create a horizontal javascript menu useing prototype
(maybe plus scriptaculous).
I am looking for a multilevel flyout menu. I saw that the Yahoo UI Library
offers library controls for menus
http://developer.yahoo.com/yui/menu/ but I would rather like to use
prototype.
TIA,
Alex
_______________________________________________
Rails-spinoffs mailing list
2007 Nov 07
1
draggable with iframeshim for ie6
you all know the problem with select and textbox in ie6 where you need
an iframe under your divs so they will visually be on top. does
scriptaculous have api for iframeshim like yahoo yui does?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send
2008 Mar 24
1
Support for unparsed responses and json parser
This is my first message to the list. Hello everybody!
I just wanted to let you know that I submitted a couple of patches for
two features that you might find them of interest.
The first one adds support for unparsed responses to
Facebooker::Session and Facebooker::Service models. This allows to use
the
Facebooker::Session.post method to obtain a plain response from the
Facebook API, useful for