similar to: Routes

Displaying 20 results from an estimated 5000 matches similar to: "Routes"

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
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
I am trying to create a form for processing credit cards. For the credit card expiration date, I would like to leave the day field out of the form for obvious reasons. However, the following code is producing an error for me. Any ideas? Thanks! <p><label for="email">Expiration</label><br/> <input type="hidden" id="user_card_expiration_3i"
2008 Jan 08
7
script/server: Permission denied
when I run script/server I get this error: script/server: Permission denied I''ve been running this app for awhile now. Not sure what would have caused the change. Any ideas? I''ve messed around with permissions on the script folder but nothing seems to work. thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2007 Dec 27
6
ActiveResource and (polymorphic) associations
Hi, I''m just playing with ActiveResource and I did''nt find anything about the support of (polymorphic) associations. Is there a support at all? Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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
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}"
2008 Feb 11
6
Should I Test My Fixtures?
I have a number of fixtures in my test suite. For example, with acts_as_authenticated and acts_as_state_machine, I created a number of users in different account states for use in functional testing. (Suspended users can not log in, etc) Is it a good idea to run fixtures through tests to ensure that they conform to their ideals? EG: assert users(:suspended_user).suspended? If so, where should
2007 Dec 11
2
in_place_edit_for into which plugin?
The docs state that in_place_edit_for has been moved into a plugin for Rails 2.0: Module ActionController::Macros::InPlaceEditing::ClassMethods "DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships." and the error messages seem to bear this out: "undefined method `in_place_edit_for'' for FaqQuestionController:Class" Anyone know which
2007 Mar 06
4
[PIMP] Topfunky''s httperf PeepCode screencast (Zed A. Shaw)
Hi, Thanks Zed - this is very interesting. One item in particular caught my eye: Does anyone on this list have any comments or validation that Rails 1.2.1 is 2-4 times as slow as Rails 1.1.6? Topfunky provided a link that purports what looks like really horrible performance and memory characteristics for Rails 1.2.1, even v. 1.1.6:
2008 Jan 21
7
undefined method error
Hello everyone, I am following the Practical Rails: Social Networking sites book. In chapter 7 photo gallery I am getting a NoMethodError in Pages#show Showing layouts/_menu.rhtml where line #12 raised: undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c> Extracted source (around line #12): 9: <% if is_logged_in? %> 10:
2008 Jan 17
3
CruiseControl problem. Broken Pipe?
Hi Friends, Just happened to catch this err in the CC log: Build loop failed BuilderError: Write failed: Broken pipe ./script/../config/../app/models/subversion.rb:98:in `execute_in_local_copy'' ./script/../config/../lib/command_line.rb:86:in `call'' ./script/../config/../lib/command_line.rb:86:in `e'' ./script/../config/../lib/command_line.rb:84:in `popen''
2007 Dec 10
10
Reading Hash/Array
Hi all, My app is generating a form with several bill_items that should be updated (fields to be updated are description and net). The text_field_tag names are bill_item[update][#{id}][description] and bill_item[update][#{id}][net] (and I added bill_item[update][#{id}] [id] just in case) The param received is: {"commit"=>"Save",
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
2008 Dec 28
7
2.2.2 simple_captcha upgrade error
So thanks to Craig, i got up and running on rails 2.2.2, though now i''m dealing with a whole new can of worms. I''ve done a good bit o searching and haven''t found any solid leads. I''m using the simple_captcha plugin on my site, and all is well until i call that plugin. http://www.pastie.org/347721 ActionView::TemplateError (undefined method
2008 Dec 18
5
distributing a rails application
What are the standard best practices for sharing your rails application on the web? As far as I can tell, you just delete the logs directory and clear out the database.yml What am I forgetting? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 Dec 11
4
Lost in translation - Rails 2.0 Nested Resources, Custom Actions
The shift to the :has_many and :has_one options when defining nested resource routes has me perplexed. The block format allows me to define custom REST actions like publish in the example below: map.resources :users do |user| user.resources :articles, :member => { :publish => :put } end It also allows for multiple levels of nesting if necessary. What I''d really like to
2009 Jan 04
4
Adding routes and link_to
Hello. I''ve added some routes : map.news ''news'', :controller => :News, :action =>:index map.login ''login'', :controller => :Login , :action =>:index When I go to /news or /login before adding the routes, it works well. When I add the routes and clik on the link that goes to /news or / login, I got a 500 internal error with this :
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi, first of all I will apologize in advance for my presumably noobish question, but I''m only starting to learn Rails and am a little confused with all the changes in 2.0.1. There are as good as no tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the creation of both the app and the database. Now my problem is that I already have a database with a fair amount of
2007 Dec 22
3
Formatting looping display from mySQL table
Hi I''m a noob to RoR. I have everything setup but can''t figure out to get the list display as I would like. I''m sure this is very simple stuff. I just haven''t figured it out yet :( I hope someone can point me in the right direction :) I have a mysql table "websites". In it I have the following columns - Name, Url, Banner, Description I created
2008 Jan 01
26
Did DHH have a suit on?
So I''m wondering about the origin of "ActiveRecord" and "ActionPack" and the like in Rails. I''ve always thought that perhaps DHH found himself in a suit one day (maybe he had to attend a friend''s wedding or something), and as long as he had the suit on, decided to lapse into a one of the barely lucid frenzies that Marketing people are prone to when
2010 Sep 02
5
Re: Exclude ActiveRecord in Rails3
What''s the best way to exclude ActiveRecord in Rails3? In Rails2, one could just do: *config.frameworks -= [ :active_record ]* in the configuration block in environment.rb. Is it possible in Rails3? Thanks. Anuj -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to