similar to: restful controllers - howto nest with link_to?

Displaying 20 results from an estimated 800 matches similar to: "restful controllers - howto nest with link_to?"

2008 Oct 18
0
Link_to + PUT + restful routes problem
Hi, I''m trying to use link_to to access the Update action + add some extra parameters. I''m using the default rest routes. I can''t get it working. When I use: <%= link_to '' Accept'', invitation_path, :method => :put, :id => ''1'', :command => ''accept'' %> I can get into the Update action but the
2006 Jul 22
12
Community request - can someone show me REST?
I mentioned this in another thread, but I''ve got a formal request now. After reading tons of stuff about REST, I don''t really get it. I need to see an example. I''d like someone to write up an example blog app with these requirements - RESTful using the simply_restful plugin (or edge rails) - allows posting of comments to articles - has categories for posts No need
2007 Jul 12
0
No subject
tnet.itand SIP register messages are not replied. I suggested to check if your Asterisk box is really sending SIP messages, you can use a net sniffer. Did you alerady used different sip client with the same sip account of your Asterisk box? Did you use zoiper from the same box? Marino p.s. Are you Italian? On Mon, Jul 14, 2008 at 5:27 PM, Giorgio Incantalupo < gincantalupo at
2006 Jun 12
5
railish icons?
This is a little off topic but someone here knows, I''m sure... Does anyone have a good site to find freely available standard icons for things like add/edit/delete/save? I''m looking for a set of clean and simple matching icons that capture that Railsy-Web 2.0 feel... Maybe icons aren''t Railsy... Steven -- Posted via http://www.ruby-forum.com/.
2006 Aug 02
4
Linking to the paginated items from search results.
Using Ferret for searching, I''ve got results that I need to link to. Which is fine, except for that they''re displayed on paginated pages using Rails paginate function - so it''s not like I can''t get it from the database or anything else. Anyone have any ideas on how to go about this? It''s not so much a coding problem as a theory problem, and I
2006 May 08
2
Creating a "Foo has_many bars" association where bar isn''t a model.
Hi Let''s say we have model Foo. Each Foo instance can have several bars. Those bars are primitive, so they shouldn''t be models. For example, Foo might be a type of convention, and the bars might be years the convention was held in. Naively, we would have a conventions_years date, and put: has_many :years inside class Convention. But then we''d get an error, since for
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
Thanks, first, to everyone who''s asked and answered questions on this list, and to the creators of RSpec - it is all very helpful. I''ve searched the mailing list, and had a couple 2hr googling sessions that didn''t help me find an answer. I''ve run into a problem getting my first non-trivial view spec to run. I get an error when trying to generate a link_to()
2006 Jan 19
1
partials and instance variables for file_column
Hi, Sebastian Kanthak of the file_column-Plugin wrote once: "is the photo object inside a local variable or an instance variable (e.g. photo or @photo)? url_for_file_column only works with instance variables, like all other active record form helpers. Could this be the problem?" So I''m using file_column in a partial, e.g. <%= render (:partial => "product",
2013 Mar 06
0
gluster-rest, a RESTful web api server for gluster
Hey everyone, I did a quick hack in go about a month ago and gluster-rest was the outcome. You can find it at https://github.com/kshlm/gluster-rest The program is basically a wrapper around the gluster cli. It translates incoming requests to the correct gluster cli command, executes the cli command with the '--xml' parameter to get xml output and returns the xml document. For eg, For
2006 Aug 11
0
Resotolog-1.2 - RESTful blog example (was Community request - can someone show me REST? )
On 8/2/06, Alisdair McDiarmid <alisdair@...> wrote: > Here you go: > http://randomoracle.com/stuff/RestBlog.tar.gz Hi guys, i modified a little the original Alisdair McDiarmid''s sources and created very simple blog system. So the announce follows: Restolog - RESTful blog example ========================= Very simple blog system based on REST/CRUD ideas. Sources (all
2006 Oct 16
0
Restful routes, not repeating yourself and non-standard rest actions best practices
So I''ve recently started playing with the restful routes support in edge rails, converting a few of my controllers to support all the standard operations.. One thing that''s been bothering me, however, is the following: Before using restul routes, I would define an edit method in my controller which would be responsible for both creating new objects as well as editing
2007 Jul 06
1
Edge, link_to and mocks
Hi All, Anyone noticed that using the newer link_to syntax in edge currently fails with mocked objects in view specs or helpers. eg. if you have something like the following in your view (or equivalent in a helper): <%= link_to @dog.name, @dog %> as opposed to the current 1.2 syntax: <%= link_to @dog.name, dog_path(@dog) %> Using a mock_model as the ''dog''
2006 Aug 01
0
Newbie Syntax Question: Insertion Bottom with link_to and render Partial
I want to use link_to/link_to_function and then use Insertion.Bottom and also have render partial in it. I could not find one example with all three and I have been working on syntax for it for a long time now. In effect I want the following: When I click on my link <%= link_to_function("Post", "new Insertion.Bottom(''oldpost'',render(:partial
2006 Jul 13
3
strange behavior with link_to for "blog" and "gallery"
Okay, what''s so different about the bellow code? When I use the link_to function in a partial (three times passing "Stats", "Blog", and "Gallery")... <%= link_to(menuItem.to_s, :controller=>menuItem.to_s.downcase)%> I get... <a href="/stats">Stats</a> <a href="/blog">Blog</a> <a
2006 Jul 23
1
link_to
Help! I wanted to make a ruby interpreted variable <%= @variable %> to be the linkname of my <%= link_to "linkname", {options" %> expression. How can I do that? -- Anime ni naruttebayo!!! Uchiha Itachi''s Trashcan@ptoys http://ptoys.proboards40.com/index.cgi?board=showroom&action=display&thread=1108620582 -------------- next part -------------- An
2006 Jul 31
0
problems testing helpers - link_to and url_for don''t work...
So I''ve used the helper test plugin, and also tried some things from Rails Recipes, and basically neither seems to work for cases where a helper does anything related to link_to/url_for, and this includes calling named_routes. This is obviously an issue, as a common use for helpers is to refactoring something like this: <%= link_to "text that changes slightly", :id => id
2006 Jun 12
0
how to get link_to mouse rollover to pop up a "help" box.
I want to have a link_to (<a>) that when the mouse rolls over it (hover) a little if possible semitranspartent "box" (maybe 80px*80px) is displayed with some help/further information included. Is it possible to do this? -- Posted via http://www.ruby-forum.com/.
2006 Jun 14
1
Absolute URL from link_to?
What options do I need to provide to link_to so that it generates truly absolute URLs (i.e. including protocol://host:port/path)? It seems that even when I provide :host and :protocol arguments to url_for that it suppresses these when they match the current request.
2006 Jun 27
4
Use link_to in a controller?
Hello. I realize that link_to is a helper that generally only has use in a view file, but recently I have come across a situation where it would be useful in a controller. I am trying to create a flash[:notice] and I want to link to another page. Of course, I could hard code the HTML, but for the sake of consistency, I was wondering if there is a way to abstract it from within the controller
2006 May 05
1
link_to - passing parameters
Hi. Is it possible to compose GET request using ''link_to'' and get passed params like: params[:foo][:bar]?