Displaying 20 results from an estimated 10000 matches similar to: "Implementation of rest in ROR"
2008 Jan 23
11
Rails 2.0.2 + RJS
Hi
I had ajax commenting on my app, which worked perfectly on Rails
v1.2.6, but does not work the same in Rails 2.02. Basically the
comment gets added, but the visual effects do not work (ie lines 2 + 3
of create.rjs)
create.js
page.insert_html :bottom, ''comments'', :partial => ''comment''
page.visual_effect :appear, "comment_#{@comment.id}"
2007 Sep 20
11
Proposed API change for respond_to
Ez (or someone) asked on #merb tonight whether respond_to was the
right API for
what it does. After some discussion and pasties, I offer the
following proposed
API for content negotiation and response format selection:
First, what does respond_to do right now? I see at as performing 3
distinct
operations:
1. parse params[:format] and the accepts header to find out what
format the
2008 Mar 15
4
* Please help a RoR Newbie!!*
Hi Everyone!
I''ve only just started with Ruby so am a touch lost.
THis morning i downloaded the quick win (locomotive) and, once i swith
that on, I can view the Ruby start page at localhost:3000
My problem is, I''m not that great with finding my way round terminal. I
can do basic cd .. etc to view files, but am VERY LOST!! :-)
the Ruby page says:
#
Create your databases and
2006 Oct 28
5
Seperate admin and public views using one controller REST CRUD
Hello,
I want to seperate my admin and public views but only use one
controller. How to seperate layouts ist clear but how can I tell the
controller to render the *.rhtml files in views/admin/ when logged in or
render the *.rhtml files in views/public/ (for example).
Thanks for any help!
PS: using REST and CRUD in edge rails
--~--~---------~--~----~------------~-------~--~----~
You received
2007 Mar 06
15
mocking missing methods
Hi folks.
So I''m using mocha on a ruby project, and I really like it. One thing
I''ve noticed is that it can be a bit "surprising" when I''m mocking
methods that don''t exist on an object, and I think there''s an easyish fix.
At the moment, you use sheep = mock() to create a mock sheep. What I''d
like to do is something like sheep =
2007 Apr 28
6
RESTful web service tutorial?
Hi,
I would like to turn some of our simulation codes
out to pasture and string some of them together
by draping them in web services.
I''m looking for a RESTful Camping tutorial to get
started ... pointers appreciated.
Some simple example applications:
airfoil force calculator: feed it an airfoil
geometry, an angle of attack, and a Mach number,
and it returns the lift, drag, and
2006 Aug 30
6
REST on rails
Hi,
I just heard about REST capabilities of rails 1.1. Does anyone know a
good tutorial, or good article to begin with?
Thank you
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2009 Jan 04
3
Missing Template with edge Rails (2.3)
After freezing edge rails, all my controller examples are failing with
MissingTemplate errors.
e.g., "Missing template attachments/create.erb in view path app/views"
Trying to actually render the views gives me the same error.
I noticed I can fix most of them by using respond_do but I usually
never use it. I almost always only need to respond to one format in
one action so I omit
2007 Dec 13
10
Version naming to use in a RoR proyect
Hi everyone,
I would need to know if RoR follow any policy for version naming; I
mean, something like linux´s kernel does or similar.
For instance, kernel uses numbers separated in groups by dots (i.e.
pre 2.6 - AA.BB.CC). These groups mean differents fixtures, bugs
fixed...
I will start a big proyect from scratch with rails and I want to
choose now a standart to use and avoid future problems
2007 Oct 16
6
respond_to API
I''ll probably do my respond_to API rewrite, as discussed here:
http://rubyforge.org/pipermail/merb-devel/2007-September/000275.html
sometime this week, unless someone has come up with a better API.
I''ll also work in http://merb.devjavu.com/ticket/227 at the same time.
Any serious objections?
2008 Sep 19
7
Non-Ruby REST client for Ruby REST server
Hi,
I have a Rails 2 app and I wand to provide an API for 3rd party
applications written on any language the customer uses.
My thoughts are that the best way of providing it is by taking
advantage of rails RESTfulness and let them perform CRUD actions on my
data through it. But I don''t seem to find many information on how to
achieve this.
I first want to develop .NET clients (or web
2007 Feb 13
3
Error installing ROR on Ubuntu
Hi, I''m trying to install Ruby On Rails on Ubuntu 6.06, running on a AMD
Turion64.
I installed the ruby interpreter, RubyGems and wrote:
*gem install rails --include-dependencies
*but I''m receiving the following error message:
ERROR: While executing gem ... (Gem::InstallError)
gzip error installing /usr/local/lib/ruby/gems/1.8/cache/activesupport-
1.4.1.gem
It seems
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All,
just in a spot of bother with this gem, I am trying to create a new
location and get the above msg.
here is my controller:
class LocationsController < ApplicationController
# GET /locations
# GET /locations.json
def index
@locations = Location.all
@json = Location.all.to_gmaps4rails
end
respond_to do |format|
format.html # index.html.erb
2006 Oct 28
5
RSpec, REST and different formats
Is anyone using RSpec with RESTful rails apps? In my rails controllers I
check request.respond_to? and render different views accordingly.
I noticed that the get method in the rails plugin doesn''t accept headers:
controller_mixin.rb line 92
def get(action, parameters = nil)
@request.env[''REQUEST_METHOD''] = ''GET''
process action,
2012 Jun 09
7
ActiveRecord::AssociationTypeMismatch in UsersController#update
Hi
Im trying to link my User model to a Teams model. I seem to be getting
the following errors. Any help would be great as Im just new to RoR
Thanks
error
ActiveRecord::AssociationTypeMismatch in UsersController#update
Team(#2183395560) expected, got String(#2174675960)
app/controllers/users_controller.rb:67:in `update''
app/controllers/users_controller.rb:66:in `update''
2012 Jun 04
13
Nested Resource Route Helpers
Hello all,
I''m working on a Rails app and I have resources nested three deep - let''s
call them user, project, and issues. The route helpers now look like
user_project_issue_path(@user, @project, @issue). Would it make sense for
Rails to guess the @user <https://github.com/user> and @project<https://github.com/project> relations
from @issue
2008 Jan 02
2
Routes
Hello,
I am new to ruby.Can someone tell me
what do i need to write in the routes.rb so that i can use the following
to edit a record.
form_for
:organisation,:url=>organisation_path(@organisation),:html=>{:method=>''put''}
do|org|
Thank you.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2008 Jan 27
4
Rails versions and documentation, confused learning rails
Okay, I am new to rails. I see that the new release of rails does not apply
to anything on the site with regards to tutorials including screencasts.
What I don''t understand is how I am suppose to learn Rails 2.0 if there is
no docmentation for it. I did see that on peepcode there is a pdf for what
has changed but how does that help me?
How do I get an understanding of the design
2012 May 11
14
What is the point of using :format in routes?
Today I had a strange behavior that made me suspect of jQuery at first,
but then it happened that I''ve faced two gotchas, one from CoffeeScript
and one from Rails itself.
I have something like this:
routes.rb
post ''/fields/:id.:format'' => ''fields#show'', as: :field,
constraints: {id: /\d+/}
post ''/fields/remove/:id''
2012 Sep 18
4
"best practices" for Rails serving RESTful JSON services for use by AngularJS, Ember.js, etc.
I''ve been writing a gem to implement and extend common controller
functionality so that Rails can be used with Javascript frameworks like
AngularJS (which we are using), Ember.js, etc. in such a way that the user
doesn''t have to tweak a a bunch of rails g controller boilerplate code to
provide services for use in these frameworks that in turn would require
various changes to