Tagged Questions
0
votes
1answer
18 views
restfull controller ignore update action
I can't update field in database table. Why, when I working in edit template(controller/id/edit), rails redirect me to CREATE action and create a new row in table? It must redirect me to update action ...
2
votes
0answers
45 views
How should 'conventional' Ember-friendly APIs be designed for creation of mutually dependent parent and child models?
I'm building a Rails app with an Ember front-end. I'm trying hard to ensure that the API is as plain, vanilla, RESTful and conventional as possible, in the Rails/Ember spirit.
I'm confused as to how ...
0
votes
2answers
132 views
How to secure RESTful API in a proper way with a dynamic token Rails
What I am trying to achieve:
I'm looking to create a (REST) API for my Rails application. I have looked for Securing an API, Versioning of API and API Gems Railscast for implementation of API calls.
...
4
votes
1answer
231 views
Conditionally include child nodes with RABL
I think I have a very basic case when I'm using rabl to return JSON for standard RESTful controller methods...
First let's say I have a typical one to many relationship with parent and child (let's ...
0
votes
1answer
64 views
Rails and factory paterns
Imagine a Rails project that looks up animal celeberties based on their names. This Rails app is backed by an external service that does the actual lookup. The service returns back results based on ...
2
votes
2answers
129 views
Restful API or Traditional web app [closed]
I see web application community seems to have two different way to build a rich experience web applications.
Build a backend as pure Restful API server, and use javascript MVC frameworks like ...
1
vote
2answers
148 views
Handling multiple resources requests in RESTful services
I am confused on how to deal with requests that pass multiple resources.
I have the following hierarchy. Projects have deliverables and deliverables have documents. So ...
0
votes
1answer
160 views
How to implement a RESTful parent/children form in Rails?
My application is used by parents and their children.
I should like to allow a parent to edit details about their children from their account page. I envisage a single form where the upper section ...
1
vote
1answer
141 views
Best practice for further actions in rails controllers
i'm just writing my first app in rails and i wonder, if there is a best practice to do the following:
i have a customer model created by a scaffold and pumping it up. a customer has to be displayed ...
0
votes
1answer
2k views
Rails CRUD - Destroy path always routes to the User show page
My view is the users show page
<%= link_to 'Cancel?', {:url => schedule_path,
:id => current_user.schedules[0].id,
:confirm => "are you ...
0
votes
2answers
99 views
Rails Design Question: How should I structure my controllers for multiple privilege levels?
I am writing a site with multiple levels of privileges. There are basically 3 kinds of users in my system. They are Admin, Business, and Consumers (normal users). Let's just say that I am building an ...