Displaying 20 results from an estimated 9000 matches similar to: "Login Restfully"
2006 Aug 08
8
RESTful Rails Plugin
I am following the instructions on how to use RESTful Rails plugin found at
http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=3.
When I run the rake test:functionals
I get the following error message:
rake aborted!
undefined method `first'' for :book:Symbol
(See full trace by running task with --trace)
How can I fix this problem? I am using Rails 1.1.4 version. TIA
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
2006 Aug 05
4
Can we use ActiveResource yet?
I need to split some information up between two servers, and wanted to
use REST for it. I can write the REST server really easily...but I
don''t know how I can actually use it. I downloaded Rails trunk to
mess with ActiveResource, but it seems that it doesn''t have create
functionality enabled yet.
Is it possible to use AR fully? If not, what''s the best way to
consume
2007 Apr 20
1
Problem with form_tag
Hi all!
I''ve seen this problem in several places in the list, but none of the
remedies suggested seem to be helping me much.
I have a view like so:
HELLO
<% form_tag :action => "create" do %>
<p>My pretty form!</p>
<p><%= text_field "foo", "bar" %></p>
<p><%= submit_tag "Do
2007 May 31
4
Sample Merb App
I put together a sample app to help people learn Merb:
http://svn.depixelate.com/applications/invoice_tracker/
I also blogged about it here:
http://depixelate.com/2007/5/31/taking-merb-for-a-spin
--
Zack Chandler
http://depixelate.com
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 Mar 24
4
image file URL generated by image_tag include some parameter
I''m using image_tag to generate img tag.
URL of image file generated by image_tag include a parameter like following.
"http:// ..... /images/filename.gif?123123123"
What''s this number parameter for? How can I remove it? I''m using rails
with built-in WEBrick server in test mode.
--~--~---------~--~----~------------~-------~--~----~
You received this message
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
2007 Jan 26
7
How to protect attributes from being updated?
Hi!
I''m new to Rails!
Rails rox!
1 quesion so far:
I have :email attribute in User model.
I dont'' want :email to allow to be updated.
How do i do this with Rails?
Do I have to implement required validation manually?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Feb 05
2
Restful table column sorting with pagination
Anyone able to implement table column sorting and pagination with
Restful routes?
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To
2006 Aug 14
1
Rest, routes, path_prefix and default params
I am trying to use routes with default params to have routes
''/mycompany/departments''
and
''/companies/1/departments''
mean the same thing (both restful routes).
When I set up the files as below, I get an error of
''Couldn''t find Company without an ID''
and my log file shows the following ..
Processing DepartmentsController#index (for
2007 Feb 01
6
Using a nonstandard foreign key
Hopefully this is an interesting question.
I have a "user" table with a field "email_address". I would like the
part of "email_address" after the ''@'' to be a foreign key to a
"companies" table populated by a companies that are clients.
Any pointers on how to do this in rails?
--~--~---------~--~----~------------~-------~--~----~
You
2006 Aug 04
4
REST
I''ve been looking into RESTful approaches lately. Everything I know
my dog, Lelu, taught me.
REST (REpresentational State Transfer) is an architectural technique
for networked applications first described by Roy Fielding in his
dissertation at UC Irvine-- excellent work, especially considering
the tempting proximity of Newport Beach. As Lelu described it to me,
REST strives
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is
nullable. If the user enters say blank or empty space then in the database
it is recorded as empty space. I would like in all my models all empty
spaces to be recorded as null.
I guess I can write a plugin which will do so for all the models but I''m
sure something like that should already be existing.I
2006 Aug 17
8
instance variables in templates
Hey all,
Well... hmm... feeling pretty stupid here...
For some reason my controller instance variables are not displaying
in my templates. I''ve boiled it down to this test case.
class Rss::FilmController < ApplicationController
def display
@time = Time.now
end
end
and the template:
<html>
<head>
<title>Is This Ever Going To Work</title>
2006 Jul 19
2
SimplyRestful bug?
Hi I have my routes set up like this:
map.resource :contact, :path_prefix => "/employers/:employer_id"
so now when I view all contacts for an employer I go to:
/employers/1/contacts
That works. On that page, there''s a problem with the routes:
new_contact_url translates to: /employers/1/contacts/new ... so that
works.
But, contact_url(@contact) gives me
2006 Aug 15
7
mongrel_cluster not starting on reboot
Hi,
I''m in the process of moving my blog over from lighttpd -> apache 2.2
+ mongrel. Everything works fine as long as I don''t reboot :)
On reboot apache comes up but mongrel_cluster doesn''t start up the pooches...
I have added the mongrel_cluster call to my startup scripts like so:
www:/etc/init.d# update-rc.d mongrel_cluster defaults
Adding system startup for
2006 Sep 16
10
Mongrel and Sandbox
Z-Man,
DHH recently said:
"And [_why''s] latest work on sandbox looks stellar.
Making it drop-dead easy to run multiple Rails
applications in the same Mongrel process without
conflicts. Thumbs up to both him and Matz for getting
Sandbox on track for inclusion with the next Ruby
release."
Does that mean what I think it means - that one or
more Mongrel processes may one day be
2007 Mar 17
3
How is this done with REST (blinksale account)?
In Blinksale, the settings link in the top right takes you to the /
account url. From there, the side nav takes you to /account;templates /
account;reminders , etc.
>From what I''ve read, ;templates and ;reminders are custom rest actions
for a given resource. But the controller (account) does not appear to
be of rest nature. Also, when creating a new account, the url is /
firms/new .
2007 Feb 07
2
Image Downloads in IE
Hi,
This may not be a rails issue, if not apologies.
I have an application which allows image downloads.
The image is downloaded with the code:
send_data(@wallpaper.image,
:filename => @wallpaper.path,
:type => @wallpaper.image_content_type,
:disposition => "downloaded")
However, Internet Explorer doesn''t download the image, it