similar to: URLS and Human Factors

Displaying 20 results from an estimated 6000 matches similar to: "URLS and Human Factors"

2005 Mar 08
3
Chapter Numbering in Hieraki
I''m using Hieraki to do some documentation for RubyGems. So far I''m lovin'' it. But I have a question. I currently have three books on the site. It seems that the chapter numbers continue from one book to the next. For example, the first book has 7 chapters (numbered 1-7). The second book has three chapters, but they are numbered (8-10) rather than the (1-3) I
2006 Mar 18
1
Need help .. Rails Recipes, in_place_editor, selecting associations
Hi, I am currently reading the Rails Recipes book and like the chapter on providing your own in_place_editor for enumerations / selects. I understood so far, or I believe that I understood ;-), how to do that for a field that uses values only, like choosing from "red", "black", "green". What I fail to understand is how to chose from associated objects?!
2010 Aug 28
1
validates_uniqueness_of missing in rails 3.0 rc2?
Has anybody noticed validates_uniqueness_of missing in rails 3.0 rc2? I''m not sure if this is a bug or I''m just doing something wrong. Here''s what I''m doing. Class 1: class Title < ActiveRecord::Base validates_length_of :language, :is => 3 validates_uniqueness_of :language, :scope => :book_id validate :language,
2006 Mar 19
3
Table belongs_to either of two other tables?
Suppose I have a site about books and authors, and users can leave comments on either a book or an author. I''d want to have a table called "comments", which could belong to either an author OR a book. In my structure I wouldn''t be sure whether to include an "author_id" or a "book_id", or both. What would be the best way to handle this
2006 Aug 11
2
User Favorites
Hi there, I''m currently creating a simple (at least so I thought) structure of user favorites. Basically users can add certain ''objects'' to their list of favorites. Here is my current structure (simplified) class User has_many :favorites end class Book belongs_to :favorites end class Favorite belongs_to :user has_one :book end The table favorite just has a two
2006 Mar 04
10
Help setting up relationships needed
This is a bit of a long question, but to those of you with some experience, it should be fairly simple I think. I have a notes page that should list all notes the user has entered for all books chronologically like this. Book One: This is the note. Book Four: This is the note. Book One: A different note, entered later. Right now my models are: User has_many :books Book has_many
2005 Mar 07
3
Tons of shiny new stuff
Ok despite this crazy flu which got me last week i was able to get some coding done. Here goes: == Hieraki Hieraki got plenty of improvements next to the rails 0.10 update. The biggest new features are proper yaml, html and readme export. But there are also plenty of new code improvements like the switch to my favorite postback style for all controllers. Hieraki traditionally serves as a demo
2005 Mar 08
19
find_by_sql ON STEROID possible?
find_by_sql BREAKS THE OOP BEAUTY and perhaps we can solve that. NAMING CONVENTIONS can perhaps make find_by_sql much more clever. lets imagine that relation: publishers <- books <-> authors_books <-> authors -> universities (can''t find something else than university for that last association :) ) imagine we want to fetch every book and every associated
2006 Feb 01
1
Bus error when running Hieraki
I have been trying to set up Hieraki 2.0.1 and I cannot seem to get it running. I am running on FreeBSD 5.4, Ruby 1.8.4, Apache 2.0.55, Mysql 4.1.16, ruby-mysql 2.7, mod_scgi 1.9, scgi_rails 4.3 and Rails 1.0. I can start up the wiki, get it to display the home page, and when I click on the signup link the signup form displays. When I fill in the signup form and click the signup button, the
2005 Dec 29
2
Problem with apache and rubyonrails
I am setting up my httpd.conf file so I can secure a site create in RubyonRails. The problem that I am having is: File does not exist: /usr/home/mhale/hieraki-1.0.2/public/frontpage/index File does not exist: /usr/home/mhale/hieraki-1.0.2/public/frontpage/index File does not exist: /usr/home/mhale/hieraki-1.0.2/public/frontpage/index So apache is reading "frontpage/index" as a
2014 Apr 16
0
Configure restful web service in rails
Hi, I am trying to create a Rest web service in my rails application. I need to configure urls for it as below. localhost:3000/book/book_id/new/param1/param2/param3/param4/... localhost:3000/book/book_id/next localhost:3000/book/book_id/delete I dont have a view pages for it since it returns in json format.Please help.So what is the best way to configure these urls via
2006 Jun 13
0
question about saving associations when using has_many :through
I''ve got a User model and a Book model. A user is required to submit books each month to be reviewed by other users. I have the following relationships defined: # the join model book_review.rb belongs_to :user belongs_to :book end book.rb # each book is reviewed by many users. This allows us to get the BookReview # objects associated with this book has_many :book_reviews,
2007 Jul 24
11
Mock or Stub strategy for validates_uniqueness_of
Hi, I''m a bit stuck with mocking a unit test of a join model with regards to a validates_uniqueness_of clause. I have class Book < AR:B has_many :clippings various validates_presence_of etc end class Clip < AR:B has_many :clippings various validates_presence_of etc end class Clipping < AR:B belongs_to :book belongs_to :clip validates_uniqueness_of :clip_id,
2006 Jan 18
2
categories/recipes & books/descriptions - has_many vs has_one => id question
People, In the cookbook eg, categories has_many recipes but in a book eg, book has_one description - doesn''t that mean that the id of the description should be the same as the id of the book (instead of having it''s own "description_id" in the book table? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney
2006 Mar 06
7
Set base url?
I have an application running on a Lighttpd instance which is proxied by an Apache server. It seems to work fine but my urls are incorrect: all urls reference / which is not where my application runs at the Apache server. How do I set the base url of a Rails application? My Apache has the following proxy rules: ProxyPass /hieraki http://localhost:3001 ProxyPassReverse /hieraki
2005 Aug 10
6
Hieraki + FCGI + Problem
Hi, I''ve downloaded the latest stabil Hieraki. I have ruby 1.8.2 (2004-12-25) [i686-linux], the latest rails (and gems, too), Apache/1.3.33 (Unix) and mod_fastcgi/mod_fastcgi-SNAP-0404142202. I''m successfully running Typo (from SVN) as a FastCGI application. Hieraki works well with "script/server", and works well as a .cgi (just very slow). My problem is, that
2006 Jan 01
7
[ ANN ] Hieraki2
Happy new year! Hieraki 2.0.0 is released. You can download Hieraki2 from rubyforge.org as tgz or zip (http://rubyforge.org/projects/hieraki). Hieraki2 has a new wiki engine that ships with more than a dozen new features: * everything-is-a-wiki-page (TM) * all pages are under version control * access control list * stay in full control of the tree structure by cut and pasting
2012 Jan 06
4
Enhanced Podcasts with Ogg Vorbis (Chapter Marks)
Hello list! Since it is more and more common these days to create enhanced podcasts (= audio files with additional chapter markers [1]), I am searching for an alternative to the currently used MP4 format. ID3 also puplished an official standard for chapters [2], but nobody seems to use and support it. Now I am trying to get something similar with vorbis audio (and maybe an additional
2007 Aug 23
3
AAF: find_by_contents on AR Association Total Hits
I seem to be getting some behaviour thats unexpected (for me anyway) when using find_by_contents on an ActiveRecord has_many association. The results that are returned are only the records that belong to the model returned, but the total_hits that are being returned appear to be for the whole table. e.g. class Book < AR::Base has_many :pages end class Page < AR::Base belongs_to :book
2006 Jun 07
10
habtm "AND" find conditions
I have two tables and a join table for them e.g. books, authors in a many to many relationship (habtm) and a join table books_authors. I can successfully search for a book that has "author.id = 2 OR author.id = 4" but I am unable to search for "author.id = 2 AND author.id = 4" This is because the result of all the joins only has one author.id column so no single row has