Displaying 20 results from an estimated 100000 matches similar to: "disregard my last post..."
2010 Dec 21
3
Request for comment on post on SEO QuickStart for Rails
Hi,
http://programmers-blog.com/2010/12/21/quick-start-to-seo-for-ruby-on-rails
What do you think about this guys?
I looked through the whole Internet ;) and found nothing simple that
would suit my simple needs. So I did these things on my own and wrote
about the process.
Thanks for any comments!
Regards,
M&W.
--
Posted via http://www.ruby-forum.com/.
--
You received this message
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 Apr 25
2
Ruby randomly converting quotes to html
If anyone understands:
def some_method
"<script type=''text/javascript''>
whatever(''element'');
</script>"
end
=>
<script type="text/javascript">
whatever(‘element’)
</script>
Any idea what could create that strange behavior?
--
Posted via http://www.ruby-forum.com/.
--
You received
2011 Sep 18
1
Apache vs Nginx POST
Are GET, POST, and COOKIE on Ngnix the same as Apache? I''m creating
these objects assuming a form will POST and get turned into a hash/
array is this the correct expectation?
--
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
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart`
from a Heroku application to Facebook.
I have the following JSON object:
{"message"=>"My message",
"image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490
@original_filename="neEZYMAnBI.jpg",
@content_type="application/octet-stream",
2010 Mar 28
3
ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options
I''m occasionally getting exception notices with this error message:
ActionController::UnknownHttpMethod: ***, accepted HTTP methods are
get, head, put, post, delete, and options
Anyone ever seen this or know what could be causing it?
Thanks,
Jeff
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2011 Sep 07
0
Ruby Webservice giving "POST not supported" error when using datanoise-actionwebservice gem
I have written SOAP web service in ruby using datanoise-actionwebservice
gem but webservice sends following error in response:
Exception of type System.InvalidOperationException: Client found
response content type of ''text/html; charset=utf-8'', but expected
''text/xml''.
The request failed with the error message:
--
POST not supported
--.
please help ...
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
2010 Jun 04
0
Ajax post from a mobile app
Hi,
I''m a trying to create a user using Ajax from a mobile app with
javascript and I''m struggling!!!
Here is what I''m trying:
user = {username:''plop'', password:''plip'', password_confirmation:''plip''};
new Ajax.Updater(''all'', HOST + ''users/create'',{
method: ''POST'',
2012 Feb 03
0
Rails 3: Route all POST to :update method for a specific namespace
Against the background of the PUT/PATCH/POST partial update discussion
( https://github.com/rails/rails/pull/505 ):
Actually I want to use the PATCH method in Rails but it is not yet
implemented. So can I define (for a whole namespace) that THIS is
standard behavior:
POST resource/:id => :update
?
--
You received this message because you are subscribed to the Google Groups "Ruby
2011 Jul 06
0
undefined method `assigns' and undefined method `post'
Hi,
I have an error of undefined method.
can anyone help me to solve it.
I follow the tutorial to practicing testing controller of rails, and
now i got stuck with the error.. plz help
error:
undefined method `post'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb7754114>
undefined method `assigns'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb785d1b4>
Test file
2010 Sep 04
0
CSRF protection not working with jquery ajax post request
Hallo,
I want to test the csrf protection of my application but forgery
protection is not working with jquery ajax request.
I have used Unobtrusive Javascript with jquery
I have removed the
<%= csrf_meta_tag %>
so that my application do not include authenticity token.
In my view I have the following code
$(function () {
$(''#alert'').click(function () {
$.ajax({
2010 Jan 22
0
Routing/File Upload/Put vs. Post puzzle
I think I am doing something simply boneheaded but I don''t see it. I
hope you are willing to take a look:
I am simply wanting to upload a file and hand the file in my controller
to some code that will process it. It is not getting stored.
The UI is a "maintain" page with a file entry field in a form, and a
button to import the file and some other maintenance tasks which are
2011 Oct 17
0
Disable ajax post temporarily
Hi,
I need to disable the Ajax post function of a form temporarily and let it be a non-Ajax form with a altered action. I also need to turn it back sometime.
It''s quite easy to change the form''s action and remove the attribute "data-remote", but it doesn''t make sense as it is already binded.
Thanks to all response!
--
You received this message because you
2012 Oct 16
0
Rails 3 + fb_graph how to get access token to post to my own Facebook page
I am using Rails 3 + fb_graph to post to my own Facebook page. I have
code that works, but it uses an access token that only works for a
couple of hours. And it is very annoying to refresh this access token a
couple of times a day. So I registrated for a FB app. I now have:
my_app = FbGraph::Application.new("App ID");
acc_tok = my_app.get_access_token("App Secret");
me =
2011 Oct 02
5
tutorial: gravatar_image_tag problem
Hi all,
Still working through the Hartl tutorials. Making progress but am hitting
(another) wall.
The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you
want to see the code. I''ve pretty much followed the tutorial exactly except
I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions
are different.
I
2010 Aug 19
1
has_many :through question
I am trying to create an association table using the ":through" option
in "has_many" but not having success. I have created the necessary
migrations of the association tables and run rake db:migrate
I have the following model:
class Group < ActiveRecord::Base
has_many :users, :through => :group_user
has_many :invites, :through => :group_invite, :class_name =>
2013 Feb 28
1
how to use before_filter to decrypt post data
hello, everybody.
in ror, we can add a after_filter to a controller.
def aes_encrypt
response.body = AesHelper.aes_encrypt(response.body)
end
after_filter :aes_encrypt
and all action''s repsonse int the controller can be encrypt.
and my question is , how to decrypt data use before_filter, or anything
else.
ex: i want to post json data to /usr/register, the json data is
2010 Apr 24
1
List time zones?
Is there a way to list the time zones that rails makes available (it
seems to function only on cities)?
I figured out how to get that list at the command line in rake but i
can''t seem to get access to the list of available ones from within a
rails app.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on
2012 Nov 30
1
q@ request.request_method=='OPTIONS', ajax, post json
hi
im reading through the topic above and trying to apply it to my app.
as reference i found:http://leopard.in.ua/2012/07/08/using-cors-with-rails/
my prob is that i dont see the ''preflight'', meaning the first request
prior the actual post, which should(?) deliver this:
request.request_method==''OPTIONS''
the js code look like this:
$.ajax
({
type: