similar to: Opinions on catch-all routing?

Displaying 20 results from an estimated 900 matches similar to: "Opinions on catch-all routing?"

2006 Jun 30
4
Posting error: Ruby On Rails mailing list archieve
You do not have permission to post to group railinglist. You may need to join the group before being allowed to post, or this group may not be open to posting. Visit http://groups.google.com/group/railinglist/about to join or learn more about who is allowed to post to the group. Help on using Google Groups is also available at: http://groups.google.com/support -------------- next part
2006 Apr 24
3
Storing images: filesystem or database?
For a while i''ve been storing image in my PHP apps in the filesystem, but with the potential for a Rails project coming up i thought it was time for a review :0) In everyone''s experience, is it best to store uploaded images in the db or just stick them on the filesystem with a reference in the db? I''ve seen various performance tests and security arguments for and
2006 Jul 14
20
Method for associated relationships
I have these tables set up like this: listings has_many :states <field>state_id [int] <other fields.... .............. .............> states belongs_to: listings <field>name <other fields.. ............... .................> In my view I have <%= listing.name %> have also tried listing.state_id.name , that didn''t seem to do the magic either. This
2006 Apr 26
4
Adding a column to a table
This is a real newbie question with what i''m sure will be a simple answer... If i add a column a table (in a development application), how do i update my models to reflect this change? Cheers, Steve
2006 Jul 16
7
form_helpers ?
Just a quick silly question , are form_helpers actually helper.rb files ? Stuart
2006 May 31
5
Sharing code between some controllers? Staying DRY
Hi, I have four controllers: one for the store front and three for the store admin. In each controller I have copied and pasted exactly the same code. It is a method called redirect_to() to override Action Controller''s redirect_to(). Copy and paste is bad. I can think of two options but I don''t know how Rails will feel about them. Option 1: Can I create an intermediate
2006 Jun 01
9
@model.errors.empty? => true; @model.valid? => false
Hi, So, how can the situation described in the subject come to be? In other words, what could be invalidating the model, yet not generating an error? thanks, jh ps. here''s the breakpoint session paste: irb(#<#<Class:0xb72eec00>:0xb72eeb10>):003:0> @project.errors.empty? => true irb(#<#<Class:0xb72eec00>:0xb72eeb10>):004:0> @project.valid? => false
2006 Apr 25
3
Simple Rails Question
Hi, I have a few simple rails questions: Does the check_box_tag map to an int or to a boolean field within the database? Thanks in advance, -Conrad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060425/4956dc68/attachment.html
2006 May 03
2
Conditional statement style
This is a bit of a nuby question methinks but i''ve had a play/search around and it''s just bugging me now :0) Say I have a conditional statement, testing a variable against a number of values. The first way i did this is like so: if myvar != "" and myvar != 0 and myvar != nil # .. code end This seems a bit messy - is there neater way of doing this? I thought of:
2006 Jul 22
16
capistrano deploy failing on /public/system "No such file or directory"
trying like mad to get this to work. cap setup works fine, sets up the dir structure on dreamhost (tho setup doesnt create the "current" symlink). on deploy, i get: * executing "rm -rf /home/USERNAME/dwightnight.org/releases/20060722060159/log /home/USERNAME/dwightnight.org/releases/20060722060159/public/system &&\n ln -nfs /home/USERNAME/dwightnight.org/shared/log
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like to use Basecamp''s todo management system, but that''s not an option since I can''t install Basecamp on a server I own. The information being tracked in the list cannot be sent out of my intranet. I would imagine that there are a couple of open source rails apps that would meet my
2009 Dec 03
2
Dynamic Paths
Hey there, I''m in the muck of a major rails project, and need a bit of advice. Google isn''t much help in this case, so I came here. I''m trying to set up a URL structure as follows: url.com/username/blog/post_id where the user has_many posts and the post belongs_to user. I''m using the friendly_id plugin to enable easy lookup with the user''s username,
2006 May 30
4
Help with Shopping Cart example from Agile Web Development 2nd Edition
Hi I get to about page 103 of the book and get an application error. Further investigation reveals the following error in the dev log: Mysql::Error: #42S22Unknown column ''id'' in ''where clause'': UPDATE sessions SET `data` =
2006 May 30
3
match operator in find
Greetings! Is there some special syntax required to use the match operator (=~) in a find operation? Or is it not possible? I''ve got some data items from an external source that could be capitalized or not. So right now I''m stuck with doing: Item.find(:first, :conditions => ["name = ? or name =?", Potatoes, potatoes]) I''d prefer to do:
2006 Apr 28
9
How to display numbers or word graphically?
Some blog sites and others (ticketmaster, for example) require you to read a graphical representation of a word or number to prevent a form from being submitted programmatically. I''d like to do something similar on a new site I''m building. Two quick questions: 1. Is there a standard term for these graphical representations? i.e. how would I do a google search for this
2020 Oct 16
2
Customized theme for Syslinux.cfg
Thank you Gregory your code worked to remove the border in syslinux! It wasn?t the Alpha (that changes the opacity of the border color), but it was the ?shadowing? that had to be changed, so ?none? in the shadowing column worked(you notice the border come back if you change ?none? to ?std?) reference this link for terms: https://wiki.syslinux.org/wiki/index.php?title=Menu#MENU_COLOR ! I am also
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
On my current project I needed to create a stub that responded correctly to the id message. Here''s the change I put into my copy of head. Index: lib/mocha/mock_methods.rb =================================================================== --- lib/mocha/mock_methods.rb (revision 1114) +++ lib/mocha/mock_methods.rb (working copy) @@ -68,6 +68,7 @@ method_names =
2006 Jul 02
4
is "label for" better?
I''ve noticed that it is common practise in forms to use: <label for="tablename","columnname"> ...Some column name</label> Why is the above construct better than just writting it this way? <label> Some column name</label> If there is not compelling reason, I''d prefer to use the second example and save on typing. -- Best Regards,
2006 Apr 22
4
Multiple sites sharing a single application
Quick question: Say i have a few shopping sites that i want to run on the same application code but have seperate databases and layout/design, what would be the neatest ''Rails'' way of doing this? Cheers, Steve
2006 May 01
4
Find rows with associations in habtm
This may have been asked/answered before - if so, i apologise... I have the following table layout in a habtm relationship: ------------ ----------------------- -------------- | products | ----| categories_products |-----| categories | ------------ ----------------------- -------------- What would be the best way to pull out all the products for a given category? At the