Displaying 20 results from an estimated 5000 matches similar to: "Routes à la Basecamp"
2008 Jan 31
1
RSpec and the Basecamp API
I realise that this is kind of a basic question but I''m new to rspec and
still trying to work out how to do things. I''m working on a rails project
that requires basecamp integration via the api, which is fairly trivial to
use via the basecamp.rb wrapper:
Connection:
basecamp = Basecamp.new(APP_CONFIG[''api_host''], APP_CONFIG[''api_username''],
2007 Oct 05
1
Custom helpers for list of options?
Hi all,
I have a model that "belongs_to" many other models, many of those
models are just list of names, like country, state, city, profession
... I read about the country_select helper.
Is better to have all those tables or use custom helpers? what the rails way?
Thanks.
For example : http://pastie.caboo.se/104092
# = Schema
# country_id integer
# city_id integer
#
2006 May 25
2
basecamp prefixes
basecamp prefixes each url with a client name...
client1.updatelog.com/todos
client2.updatelog.com/milestones
any ideas on how this is done?
- one app?
- one app per client?
- one app per domain?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 23
2
Multiple Row Form similar to Milestones on BaseCamp
Hi all,
Wondering how to setup my view and controller to do something similar to
the form on Basecamp that allows adding up to 10 milestones on one page.
Thanks
Phil
--
Posted via http://www.ruby-forum.com/.
2006 Jan 06
1
How to make fancy urls (like basecamp clientx.clientsection.com]?
Im writing a app, and i wanted to have something like basecamp urls for
a account of the user of the user.
2005 May 17
7
Basecamp API
Seeing as how the new Basecamp API reflects a similar use of RoR that
I have been working on I''m curious as to what we can expect to be
extracted from there in 0.13?
Was the API written as an ActionWebService or just as a set of controllers?
Any generic AR xml parsing/output methods that we may see in 0.13?
Any reason you decided to do everything with HTTP Get instead of
utilizing
2006 Nov 04
2
Trac Triage with THE MAGGOT (Time To Clean Your Patches)
Evening,
Alright folks, as Jeremy Kemper mentioned I''m working on a set of
"triage" scripts for the Rails trac using RFuzz to go through all the
tickets and clean them out. I''ve talked this over with the core guys,
and they''re behind it.
I''m calling this set of scripts "THE MAGGOT" thanks to hasmanyjosh.
Basically THE MAGGOT (all caps)
2006 Nov 04
2
Trac Triage with THE MAGGOT (Time To Clean Your Patches)
Evening,
Alright folks, as Jeremy Kemper mentioned I''m working on a set of
"triage" scripts for the Rails trac using RFuzz to go through all the
tickets and clean them out. I''ve talked this over with the core guys,
and they''re behind it.
I''m calling this set of scripts "THE MAGGOT" thanks to hasmanyjosh.
Basically THE MAGGOT (all caps)
2006 Feb 04
2
Associations oddity
Can anyone explain this oddity to me?
Given two classes as follows:
class Question < ActiveRecord::Base
belongs_to :category
end
class Category < ActiveRecord::Base
has_many :questions
end
I get the following:
>> q = Question.find 6789
=> #<Question:0x37e9e70 @attributes={"id"=>"6789",
2010 Mar 27
2
Shorter Rails 3 routes
Hi,
I have a small blog application, and I would like to shorten its routes.
Here they are:
Blog::Application.routes.draw do
resources :categories do
resources :articles do
resources :comments
end
end
A rake routes command produce the following lines:
GET
/categories/:category_id/articles/:article_id/comments(.:format)
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"
-
2010 May 21
0
Multiple Models one form and validations ... no transactions(mongo)
I am trying to setup a sigup form thats pretty much just like the
basecamp form. https://signup.37signals.com/basecamp/Plus/signup/new
I want to create
a User
a Studio
and a Subscription(chargify)
a Subscription belongs to a Studio and not to a User. User gets tagged
onto a Studio via an admin array.
Is there any way to do this all in one form and still get back
validation errors etc without
2007 Aug 14
1
Upgrade to 1.0.8 broke Rake
Hello Guys.
I''m upgrading a project from 0.9.8 to 1.0.8, following this procedure:
* Removed vendor/plugins/rspec* completely.
* installed rspec and rspec_on_rails from
svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8
* Run script/generate rspec to update spec_helper and spec.opts
Now, when running rake, get the following error: superclass mismatch
for class Annotation
The following
2007 Aug 12
3
Scope and specing models
Hello all, I''m currently having an issue with some specs, specifically scope
issues (probably more of a scope issue than a spec issue at this point)...
Here''s the error:
ActiveRecord::AssociationTypeMismatch in ''A new User should know what role
it has''
Role expected, got NilClass
D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in
2005 Nov 11
0
Possible to simplify these routes?
In my routes.rb I have:
map.connect
''items/category/:category_id/order/:order/page/:page'',
:controller=>''item'',
:action=>''list'',
:requirements => {:category_id => /\d+/}
map.connect
''items/category/:category_id/order/:order'',
:controller=>''item'',
2006 Sep 26
0
some help with functional testing of nested routes
I have the following functional test in test/functional for testing my
products_controller:
require File.dirname(__FILE__) + ''/../test_helper''
require ''products_controller''
# Re-raise errors caught by the controller.
class ProductsController
def rescue_action(e)
raise e
end
end
class ProductsControllerTest < Test::Unit::TestCase
fixtures
2006 Jan 04
0
OT: Displaying errors on credit-card processing
Hi,
This question isn''t Rails-specific, but since Basecamp (& the family
of premium 37signals apps) have the best implementation of credit-card
processing I''ve seen, I''m hoping maybe DHH could lend an answer. Of
course, anyone is welcome to chime in!
# Some background
Our nonprofit is building a Rails-driven store and donation center and
our developer is
2007 Nov 14
0
Should receive field_for failing
I have a spec that''s not behaving as I''m thinking it should. Here''s the
code:
http://pastie.caboo.se/117931
it''s failing with:
ActionView::TemplateError in ''customers/new should receive fields_for''
Mock ''ActionView::Base'' expected :form_for with ("address", #<Address id:
nil, address1: "123 Main St.",
2008 Oct 18
0
tracking received emails like basecamp or github
I have an application which I configured to send and receive email. Both
processes work at the basic level. The application can send email to
users. Users can send email back to the application where I use the
mail_fetcher plugin to poll the inbox.
My problem is i am trying to determine the best way to ''track'' these
emails so that when they are retrieved from the mail server I
2004 Nov 07
2
Building of Basecamp seminar in SF
I am going on Tuesday. Anybody else here going?
Gleb