similar to: Overiding routes in rails3

Displaying 20 results from an estimated 200 matches similar to: "Overiding routes in rails3"

2011 May 06
3
RestClient send method?
Hey all, I see this line of code: RestClient.send(verb, url, parameters) Basically there''s two rails application that communicate with each other. RestClient is a rails gem. Here we send the get http verb and a url string comprising of the other application base url and append a query string to it consisting of the new user email that is being created. So if the arguments are these:
2011 Jul 13
0
RestClient posting multipart issue - RestClient::Found Exception: 302 Found
I thought I found how to post a file to my controller for PaperClip attachment processing , but I am stuck with the the RestClient processing I am creating the file from the email attachment : file = StringIO.new(part.decoded) file.class.class_eval { attr_accessor :original_filename, :content_type } file.original_filename = part.filename file.content_type = part.mime_type # then adding some
2007 Oct 27
0
EM.One
Pat Phelan posted this on Facebook - thought the SIP functionality would interest some people here as well. Jajah inks large Japanese dealJajah inks large Japanese dealJajah inks large Japanese deal (Pat Phelan <http://www.facebook.com/profile.php?id=754567533> ) <http://www.facebook.com/profile.php?id=754567533> By Pat Phelan
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi, I am trying to implement Rest Api for a sample application for learning purpose. But when I try to make a "GET" request through the RestClient it is showing error as RestClient::ResourceNotFound in UsersController#index def index uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl rest_resource = RestClient::Resource.new(uri, USERNAME,
2011 Oct 07
1
403 Error Dont know whats wrong.
Hi, I am quite new to ruby and am programming an application to send sms using rest_client gem. I so far have code on one of my modules which tries to send an sms to a number. It gives the 403 error - RestClient::Forbidden in SMSController#index 403 Forbidden Rails.root: /Users/user1/Desktop/rails_projects/sms_app My code in the module looks as follows - before adding this code i had a simple
2009 Oct 04
2
no such file to load -- restClient (MissingSourceFile) HELP
i don''t get what is going on here. if i run the restclient command that starts an irb with restclient it works fine but when i try to load it from environment.rb with require ''rest_client'' this is what i get... it''s driving me batty. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'': no such file to load --
2011 Mar 15
1
Acts as taggable on ( tag ownership question )
From the acts as taggable doc I seeTag Ownership Tags can have owners: class User < ActiveRecord::Base acts_as_tagger end class Photo < ActiveRecord::Base acts_as_taggable_on :locations end @some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations) @some_user.owned_taggings @some_user.owned_tags
2012 Mar 28
0
Performance for SOAP and HTTP
Hi everyone, I hope someone can help me with the following problem. I want to issue SOAP request from rails to connect to a legacy system in the backend. First I tried savon as a SOAP client. Everything worked fine, but the performance was bad. The following code client = Savon::Client.new client.http.headers["Content-Type"] = "application/soap+xml; charset=utf-8"
2006 Aug 17
1
Dovecot public folders ACL
Hi, all! I'm new to dovecot but trying to setup read-only public folders for different user groups. My goal is to create several public folder such as sales, operation etc with per user index. But I have some problem which I can't resolve with Google and Dovecot.Org. Now users can see and subscribe to test folder "share", but I can't block ability to delete messages via
2005 Mar 28
1
Kernel panic loading second fritz card
Hi Everyone, Long time reader, first time poster. FINALLY got my First AVM Fritz Card up and running under Centos 3.4 Installed the second....modified the drivers etc as per the instructions found at the wiki System boots Modprobe capi all good modprobe fcpci all good modprobe f2pci the kernel then goes into Panic If Modprobe f2pci before fcpci the kernel still goes into panic.
2002 Oct 29
1
Overiding builtin DLL's for Dreamweaver
Trying to get DW to run and ran into a snag. I installed it on a Windoze machine and copied the directory over, and then copied all the dll's I could find in that directory to my system and system32 directories on the fake drive. When I go to run DW it crashes with javascript errors. Wine then core dumps. When I run this from a terminal window I see some errors pop up as it goes along.
2007 Mar 28
2
overiding concatenation of tables by alphabetical order
Hi everyone! When doing a has_and_belongs_to_many join, with two tables, rails expects a join table whose name is the concatenation of the two table names in an alphabetical order. However i have a number of tables which do not follow this convection and wish to have rails read and recognize them. for example i have a table called feature and another called cvterm. The join table is however
2010 Jun 09
4
rails+sinatra sent image
Hi! I have simple rails application - users with name and avatar and in sinatra I want to create new user. form for new user <form action="/users/create" enctype="multipart/form-data" method="post"> <p> <label for="name">Name: </label> <input type="text" id="name" name="user[name]" >
2010 Nov 07
1
Strange authlogic logout behavior
I am using authlogic for my application''s authentication. If I decide to login with an account and then immediately logout, I get an error. Unknown action The action ''show'' could not be found for UserSessionsController The server log in development says: Started GET "/user_session" for 127.0.0.1 at Sun Nov 07 13:28:31 -0800 2010
2012 Mar 06
2
rails login page with basic authorization
i have 2 portal, one and two. The portal one have all apis, and the portal Two have the interfaces, Here just i am doing enter the username and password in the login page so that will go the method of Portal Two. Then it will pass the username and password of a method of Portal One, this is am doing here. My question is how to do the basic authorization for encrypt the username and password
2005 Jul 07
2
Extension Problems
Better read up on why a sip phone should register with asterisk. Do a 'sip show peers' and that will be the list of phones that can "receive" calls. ------------------- I've double checked this. Everything is logging in fine, because I can make calls, check my voicemail, everything except recieve calls on the SIP devices. David Phelan wrote:
2006 Mar 19
0
HFC USB (was MultiBRI in Australia - found one-maybe)
I've just found my first problem. /dev/mISDN was being created with the wrong permissions... Thanks James > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of David Phelan > Sent: Monday, 20 March 2006 12:18 > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' >
2006 Aug 12
10
adding extra variable to a class, how to access it?
somple question here but pretty confusing on my side. i have a model towns that is mapped to my towns table. can i add an extra variable to the class and access it in my view? basicall what i am trying to do is return a list of towns, and next to each town, display a total number of what i have in each town. ive tried both attr_reader and @total but no avail. here is my view <% for
2011 Jul 14
10
Devise confusing routes
I had a similar problem yesterday. I would go to the root of my site and I would get a Too Many Redirects message. It seems like there was an infinite loop. After struggling for over an hour yesterday late at night, it seemed like I fixed it. But now, when I want to create a New User, it''s redirecting me to the Sign In screen. Seems like I didn''t fix the problem completely. I
2006 Mar 16
1
rails3 - example of Amazon S3 on rails
Hi I''ve done a small rails application for file management on Amazon''s new service, the storage webservice ''Amazon S3'' (at this time just upload, list and delete methods are implemented). Maybe someone find it useful as example. The source code and a little more information can be found here: http://caffo.backpackit.com/pub/502395 Best regards Rodrigo Franco