similar to: Nested REST resource routes without controller name

Displaying 20 results from an estimated 4000 matches similar to: "Nested REST resource routes without controller name"

2005 Mar 30
1
FC2 POP3/SMTP Configuration
OK, let me try this again. . . . I'm a newbie to dovecot and a little bit less of a newbie to linux. I am in the process of moving my server from RH9 to FC2. The only obstacle remaining is my email. I run dovecot (v0.99.14) POP3 and sendmail (8.12.11-4.6) with Mozilla (1.4.2 and others), Thunderbird (1.0.2) and Netscape (7.1 on PC's, etc) mail clients - mostly PC's (W2K, WXP).
2005 Mar 29
0
FC2 POP Configurtion
I'm a newbie to dovecot and a little bit less of a newbit to linux. I am in the process of moving my server from RH9 to FC2. The only obstacle remaining is my email. I run sendmail with netscape mail clients - mostly PC's. They all can read their mail but none of the users can send. Depending on the state of the dovecot.conf file, I get the following: Mar 28 16:04:14 corvette
2010 Aug 01
3
Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-8BIT"
Hi First off, I''m using Ruby 1.9.1p378 and Rails 2.3.8. I was creating a minimal application to test handling of Norwegian special characters when I bumped into this strange problem... I have a simple Car model with fields maker:string and model:string. For the controller I planned to just have an index action do all the work: class CarsController < ApplicationController def index
2008 Jul 22
2
ActiveRecord Associations issue
Hello all and thank you for reading this message. I am new to RoR, and ruby too, but i am quite excited about it. I am developing a RoR project and with active record associations in the following manner # Tables (all tables have only one record) CREATE TABLE `webcars_development`.`cars` ( `id` int(11) NOT NULL auto_increment, `model_id` int(11) NOT NULL default ''0'',
2008 Feb 28
2
REST nested routes with has_one
Hi everyone, I have 2 models: class User < ActiveRecord::Base has_one :laboratory, :foreign_key => "pi_id" end class Laboratory < ActiveRecord::Base belongs_to :pi, :class_name => "User", :foreign_key => "pi_id" end I set the following routes (in routes.rb): map.resources :laboratories map.resources :users, :has_one => :laboratory All the
2007 Aug 31
2
How to spec routes for a resource nested in multiples resources?
Hi, I got the resource "Llamadas" nested in: - Operadores - Productos - Centros Here is part of my routes http://pastie.caboo.se/92767 I want to spec that the routes for Llamadas, I tried several approachs: - route_for(:controller => "llamadas", :action => "exitosas", :operador_id => 1).should == "/operador/1/llamadas;exitosas" -
2008 Mar 07
4
n-levels of nested resources in REST?
Hi, I find it would be very convenient to nest resources in two levels, so a member is only sensible as a part of a club, and a fee pament is only sensible in the context of a club and a member. Is it possible to nest nested resources? How would the syntax be? I have tried just nesting the assignment in routes.rb, but failed to get it right What do ou think? Is it possible? /Fredrik --
2008 Jan 27
4
(REST) Nested routes
Hello, I''m in troubles with nested routes. I have three models: Team, Tournament and TeamTournaments class Team < ActiveRecord::Base has_many :tournaments, :through => :team_tournaments has_many :team_tournaments class TeamTournament < ActiveRecord::Base belongs_to :team, :foreign_key => ''team_id'' belongs_to :tournament, :class_name =>
2008 Nov 05
2
AJAX - REST & nested resources
I''ve created a set of resources, with scaffolds that all work. I then changed one resource to be nested inside another as a one to many relation. This required a little bit of work on the tests, the controllers and the views but it all works. Now I want to go the extra step and have the child resources become updateable inside the parent form. I''ve pushed the formatting of the
2006 Oct 25
7
rest nested resources - Help please
I can''t believe I''m back again with another rest question. I did go through the peepcode podcast. I thought though you can have multiple nested resources, is that not true ? I have this set up map.resources :candidates do |candidate| candidate.resources :canbackgrounds candidate.resources :canpositions end I just coded up teh canpositions and now all
2006 Aug 02
1
REST, Resource, etc
So, what''s the deal with all this REST and Resource stuff? Why should I care about it? How does it help me? Why is it cool? Everywhere I see the stuff mentioned, it assumes you already know what it is and why it''s good. Thanks, Joe
2007 Jun 22
1
nested rest URL => passing param from select
Hi, I''m trying to create a select box with an onchange event. When onchange is fired, I want to redirect to a nested rest url. The problem is that I don''t know how to pass the selected value to the url: <select id="category" onchange=" <%= remote_function(:url => category_articles_path(selected value?) ) %> "> Any suggestions? -- Posted
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
2007 Jul 28
0
Nested RESTful Routes and creating a object from XML
I am trying to create a new model from XML that contains has a has_many relationship. Is this possible without having to write code to parse the XML or to doing multiple POSTS? I can do a post with XML that doesn''t contain any of the has_many elements and it works fine. It is when I add the items from the has_many relationship that I get a bunch of errors. Here are the examples I am
2008 Aug 28
0
How to handle nested and not nested resource in an action's controller?
Hi list, I don''t know whether the subject is understandable / what i really mean. I have a model which resources are nested and non-nested (CMIIW). Anyway, my routes.rb should explain: map.resources :speeches, :collection => { :upload_file => :get } map.resources :bundles do |bundles| bundles.resources :speeches end How to handle an action in SpeechesController,
2006 Sep 17
0
[RFC] Nested Restful Resources + Polymorphic Associations
hi, how to handle the problem addressed in this thread: http://rails.techno-weenie.net/question/2006/9/6/nested-restful-resources-polymorphic-associations is there any consensus on this? any comments, suggestions? thanks, _c -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2008 Jun 30
0
Nested resources routes
Hi! I''ve got a quick question in routing. Is there any difference between map.resources :stuff, :has_many => :inner_stuff AND map.resources :stuff do |stuff| stuff.resources :inner_stuff end ? Both calls seem to do the same thing - they just register the :inner_stuff as a resource inside :stuff resource (in terms of routes). Do they? Thanks -- Posted via
2009 Mar 08
2
RESTful nested resources and polymorphism?
With ref to my previous post: http://www.ruby-forum.com/topic/180356 I am now able to access items from topics controller. However, now I need to add sub-item e.g.: An item itself could have many sub-items. So my items model is like: class Item < ActiveRecord::Base validates_uniqueness_of :title, :scope => [:topic_id] validates_presence_of :topic_id, :title, :owner, :position
2008 Jul 11
1
Using custom routes to handle new nested resources
I have a couple of resources, one nested in the other, such that my resource spec in routes.rb is: map.resources :parents, :has_many => :children This will generate a route for a new child that assumes that the parent has already been saved, something like: /parents/:parent_id/children/new But what if I want a route that handles the case where the parent resource is also new, and thus
2008 Jun 25
0
Rspec routing_spec failing on nested singular resource
This should be easy to solve; I''m trying to get an Rspec routing_spec working with a singular nested resource; map.resources :users do |user| user.resource :profile end All the tests in the profile_routing_spec seem to be failing because they can''t match the routes, for example; # The spec describe ProfileController do describe "route generation" do it