similar to: Problem with routes when I move the app to a different machine

Displaying 20 results from an estimated 6000 matches similar to: "Problem with routes when I move the app to a different machine"

2006 Feb 21
7
Self-referencial habtm relationship
Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad Fowler''s "Rails Recipes" to get me started, and everything works great with the join table "people_friends". I add friends by doing somebody.friends << somebodyelse. However, with my app, there is an approval process so my join table has columns person_id,
2006 Feb 23
2
lighttpd and blank page
Hi all: I have been using lighttpd on os x with RoR. It normally works great, however, when I use it for one project, kill the process, then switch to another project and start up using ./script/server, all I get is a blank page. No errors or html. The only solution I have found so far is to restart my machine, but that seems terribly inneficient. How does everybody else handle this, or do you
2006 Jul 28
2
RJS + Internet Explorer
Hello all: I am using RJS templates to replace html on my pages. It works great in FF but I get an RJS error in Internet Explorer. I believe I had it working previously in IE, but for some reason it''s not working now. Any help would be greatly appreciated! Thanks, -- Randy Schmidt x@altorg.com 267.334.6833
2006 Feb 21
26
Net::SMS::BulkSMS 0.1
This is the first release of a new Ruby library for the www.bulksms.co.ukAPI which should allow simple integration of SMS functionality into your Ruby or Rails apps. Sending a message is as simple as: @service = Service.new(''username'', ''password'') @service.send_message(''This is my message!'', ''4479123456789'') # whats my
2006 Feb 21
3
Images directory
I have a template. In this template i refer to images by using <img src="images/image.gif">. I putted the images in the public/images folder. This works only for the base url, e.g. http://localhost:3000/category. When i make a new category like http://localhost:3000/category/new, the images arent displayed. When i go to the source of the page, and look to the image url it says
2006 Feb 22
5
svn externals and Edge Rails
Hi all: I am considering using edge rails so I can use join tables. I want to use svn:externals to manage edge rails, however I want to understand it more before I go and set everything up. so everytime I commit my app it will pull the most recent version of rails from the svn repository, right? What if the current version of rails is unstable, is there a way to rollback edgerails and NOT my app?
2006 Feb 25
1
Ruby for Rails chapter 4 up now
If you buy the MEAP (Manning''s version of Beta Books), you can now get the first four chapters of David Black book (that''s nearly 25%!). So far, I''ve been really pleased with it. I just grabbed chapter four, and I''ll be reading it soon. Get more information (or buy a copy) at: http://manning.com/books/black -- thanks, -pate -------------------------
2006 Jul 28
2
Delete has_many_and_belongs_to_many relation
Hi there, Just a simple question I guess, but I am unable to find an anwser... How to delete a hmabtm relation? Any help will be appreciated :) Thanks, Fabrice. -- Posted via http://www.ruby-forum.com/.
2006 May 27
5
Rails without cookies
Why does rails keep installing cookies on users machines, even if I am not ussing th session variable for anything? How do I stop this? Thanks, Scott -- Easily help charity when you shop: www.GiveTeam.org I''m a member of the Give Team, are you?
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble getting the ID passed through to the controller. I use this in my view to create the field: <% for frame in @frames %> ... <%= in_place_editor_field :frame, :price %> <% end %> and this produces the following in my output: <span class="in_place_editor_field"
2006 Feb 22
1
managing dates in forms
Hi, I have a field for the user which is their birthday. I am letting them edit it and then save it if they want. However, the form displays the current date/time, and when they save the form without changing the birthdate (because they do not wish to set it), the current date/time gets saved to the db. How do I do this? I thought about having a hidden field which would be the current date/time
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items class Accounts < ActiveRecord::Base has_many :items, :through => :projects, :source => :items has_many :late_items, :class_name => ''Item'', :through => :projects, :conditions => [''due_on < ?'', Time.now], :source => :items end class Projects <
2006 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and their hashed password in the cookie after a successful authentication. can any see an obvious security issue with this? I know the method is vulnerable to cookie theft but am i missing anything? thanks alan
2006 Jul 31
2
RJS: hide element problem
Hi, I am trying to hide a "intro" text shown to user the first time after he has made a search, in the website with RJS/Prototype "hide". I get the following error: RJS Error: Type Error: element has no properties. The text I would like to hide is in a div called "intro" and in my RJS I tried: - page.hide[:intro] as well as - page.hide ''intro''
2006 May 31
1
Lighttpd: HTTP and HTTPS Simultaneously
Hi is it possible to configure lighttpd to serve pages for http and https requests simultaneously? I would like users to be able to access my site securely or non-securely where the choice is theirs. The only instructions I can find to do this involve creating two copies of the lighttpd application (http://wiki.archlinux.org/index.php/Lighttpd_For_Both_SSL_And_Non-SSL). Is there any way to do it
2006 Aug 01
1
Getting nil when you want "" (a blank string)
This has got to be something obvious that I am missing... I have a remote form that has one value that is passed back to the server from a text field. The form has a set of parameters passed to the :url key called search_params. When the field is empty and the form is submitted, I get :my_val => "" as expected when I examine the log. All is well with the world. I need call that
2006 Jul 28
2
change url based on account name
Hi, Is this possible Can I specify a url ie http://localhost/AccountName/:contorller/:action/:id Where AccountName is should be a userName, which will lookup a siteId in the database? Whats the best way of going about this, is there somthing in the routes.rb file I can change to get the account name into a variable? Thanks for your help jon -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
4
add one month or one year to a date
Hi, I need to be able to add one month or in some cases on eyear to a Date. Does anyone know of any easy ways of doing this? thanks scott -- Posted via http://www.ruby-forum.com/.
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book. The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application. For instance, it will be great to see how one can implement the typo blog
2006 Feb 25
0
self referential habtm using join tables
All: I have been working on making a self-referential habtm relationship that uses a join model because I want to store info about the relationship. I have been using two sections from Chad Fowler''s "Rails Recipes" as a guide, "Self-referential Many-to-Many Relationships" and "Many to Many Relationships Where the Relationship Itself has Data". So far I have