similar to: Deriving controller/action from a RESTful URL

Displaying 20 results from an estimated 30000 matches similar to: "Deriving controller/action from a RESTful URL"

2014 Feb 27
0
How to Integrate Twilio With Your Rails 4 App
*Disclosure: I am a Developer Evangelist at Twilio.* Hey everyone, I just published a blog post on how to use Webhooks and Concerns to integrate Twilio into a Rails 4 application. I hope some of you might find this useful: https://www.twilio.com/blog/2014/02/twilio-on-rails-integrating-twilio-with-your-rails-4-app.html I've also published the full source for this tutorial on Github:
2009 May 01
4
Can't get to an action in a RESTful controller
Folks, I am using the restful_authentication plugin. This creates the users controller which is declared as a resource in routes.rb as below map.resources :users Now in the UsersController I have created an action to resetpwd that I am trying to get to from the login page when the user clicks "forgot password". However, when I do that the log file tells me that the call to
2006 Jul 17
2
Getting the original url from a controller action method
Is there a simple way to get the original url which spawned a controller action, including any query parameters? Thanks in advance, Don Mc -- Posted via http://www.ruby-forum.com/.
2010 Jul 15
1
how can i hide controller and action name in url
Hi All, I am new in ROR. I want to hide controller and action name from url. exp. my current url: http://localhost:3000/triggers/index/amit123 expected: http://localhost:3000/amit123 remove controller(trigger) and action(index) name from url. please help me. Thanks Amit Jain -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to
2008 May 08
0
Controller/action not working in url
Hey guys, i am facing some problems in calling an action. see details: in sale_items controller, i have a function def saleedit --code-- render ( :action => ''saleedit'') end and i have a file in view/sale_items/saleedit.html.erb. okay. now i have one more view view/sale_items/new.html.erb. in this file i have a form like this: <% form_tag url_for(:action =>
2007 Sep 18
0
Help with RESTful named url options
I''ve found quite a few posts on the subject, but no satisfactory answers. Maybe Rails just doesn''t support this yet. How do I create a url with a named RESTful route that also has parameters? I want to write this: link_to_remote "Show Details", {:url => item_url(@item, :details => 1), :method => :get} And get this: <a href="#"
2007 Aug 26
0
escaped ampersand in generated restful url
I am using a restful helper method to build a url for use in a link_to_remote method and for some reason the generated url has the ampersand that separates the parameters escaped (i.e. /action?param1=1&amp;param2=2 instead of /action?param1=1&param2=2) Any ideas why and how to make it stop? :-) The code in question resides in a helper, if that matters... Cheers, s0nspark -- Posted via
2008 Nov 16
0
non-RESTful action or nested routes?
I''m creating a simple task management system to learn Rails. I have a "task" which is part of a "project", as so: /projects/5/tasks for project with id 5''s tasks My task has a concept of being started, completed and updated. "Updating" maps to the existing RESTful routes provided by Rails. Started and completing, however, do not (at least not
2009 Feb 20
1
RESTful Routes not working - Switches ID and Action
Hi, I would like to ask for some suggestions on my problem with Routes. It''s probably pretty simpel. This link: <%= link_to image_tag("...", :alt => "...", :title => "..."), edit_brand_path(brand) %> Results in this URL: http://localhost:3000/brands/21/edit And echos this: "Unknown action - No action responded to 21" When I type
2008 Jan 21
2
multiple ids on restful action
Hi, I know this question has come up before, but I couldn''t find a satisfying answer. Maybe I didn''t look well enough, so any pointers to old messages regarding this subject would be welcome too. I need some way to pass multiple ids to a resource. Something like /posts/13,14 If I do this I have to manually split the id on ","s in the action, and use post_path([post1,
2007 Jun 27
5
How to make attachment_fu generate RESTFUL URL
hi folks: I follow this article:http://clarkware.com/cgi/blosxom/2007/02/24 all goes well except the public_filename ,it return something like "photos/0000/0001/test.jpg" ,not the expected RESTFUL URL LIKE ''photos/1/test.jpg'',any suggestion? My Env is Rails 1.2.3 on Ruby 1.8.6 with attachment_fu from http ://svn.techno-weenie.net/projects/plugins/attachment_fu/ by now
2007 Jan 05
2
Using RESTful routes in controller tests
Why can''t I use the RESTful route helpers in my specs? In my controller I''m doing a redirect: redirect_to list_path(:id => @item.list_id) Now when I write: controller.should_redirect_to list_path(:id => 2) I''m getting the following error: NoMethodError in ''POST on /lists/2/items should redirect to index on succesful POST'' You have a nil object
2009 Mar 11
3
[rspec, rails] Restful Routes in controller specs
Hi, how is it possible that I can use the restful routes helpers (e.g. new_user_path) in controller specs? I browsed the source code but I couldn''t find the magic. I''m just curious and would appreciate any hint... thanks Andi
2006 Nov 04
0
RESTful controller naming conventions
It is my understanding that originally controller names where singular. In all the examples of RESTful controllers the names have been pluralized. So what is the new convention? Singular or plural controller names? Leevi Graham Front End Developer - User Interface Designer www.leevigraham.com | Skype Me: leevi_graham MSN Messenger: info@leevigraham.com Download My VCard --------------
2002 May 17
2
read.table
Hi, I have a data file with columns separated by ";" I read this file without any problem using read.csv2( ) but I had problems trying to read it with read.table( ... sep=";"). So it is not a problem for me, but I wonder if there is a bug here. drt <- read.csv2("t.txt", header=TRUE) # ok dcs <- read.table("t.txt", header=TRUE,
2005 Oct 19
1
Help needed with filtering rules - how to copy named director ies only
Hi Wayne, What would be really nice, and I imagine quite easy from a coding perspective would be to allow the user to apply a regex match on the full pathname of the files being transferred. Anyway, thanks for your confirmation - I have worked around this problem. Cheers, David Carter-Hitchin. -- Royal Bank of Scotland Interest Rate Derivatives IT 135 Bishopsgate LONDON EC2M 3TP Tel: +44 (0)
2011 Apr 04
1
Deriving formula with deriv
Dear list, Hi, I am trying to get the second derivative of a logistic formula, in R summary the model is given as : ### >$nls >Nonlinear regression model >model: data ~ logistic(time, A, mu, lambda, addpar) >data: parent.frame() > A mu lambda >0.53243 0.03741 6.94296 ### but I know the formula used is #
2011 Feb 17
0
deriving waveform values
Im am curerntly trying to use R software to extract uncompressed waveform values with I have acquired from IDLreadGLAS tool. I am very lost with this & know I have to assess the GLA01 product data, however, any advice on the matter atall would be brilliant, particularly on define thresholds and connecting GLA01 and GLA14 data (or any data for that matter) -- View this message in context:
2014 Apr 25
1
Deriving VMs from a reference image via scripts
Hi. I have a reference .vmdk (and .xml) reference VM. I need to instantiate multiple new VM’s from this, but changing various parameters: name, MAC address, network connections, cores, memory size, disk size and backing store, etc. and then start these new VM’s… all via ‘virsh’ et al from a script. What are the steps to do this? I was looking at the command help and some tutorials but
2009 Mar 31
1
Deriving Samples from specific, not implemented PDF for a QQ-Plot
Dear All, this is my first post to the R-help, so please don't be too strict. My problem concerns a QQ-Plot: I want to show how well empirical samples match with a theoretical distribution. The theoretical distribution has got several parameters, but I made it to fit via ML. Anyway, the theoretical function gives me the density for a given data point x. As far as I'm