search for: jeremyhuffman

Displaying 16 results from an estimated 16 matches for "jeremyhuffman".

2006 Mar 21
8
Redirect without port number?
...application and with Typo. In my app I tried url_for :only_path => true which didn''t seem to help, and I''m not enamored with doing this in Typo and then re-doing it if I ever upgrade, is there a way to "hide" the port number from rails? -- Jeremy Huffman http://www.jeremyhuffman.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060321/db68b9b7/attachment.html
2006 Apr 01
3
Syncpeople Plugin Scope Never Active
...-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)''; end = ''^\1(?=end)\b''; patterns = ( { include = ''source.ruby''; }, { include = ''$self''; } ); } -- Jeremy Huffman http://www.jeremyhuffman.com
2006 Mar 20
8
Best way to organize non-controller logic???
I don''t want to put certain code in my controller because I think it makes things more confusing. What is the best way to manage business logic such that it doesn''t end up in the controller? Basically, where should I put my regular utility classes and backing objects that may not be models? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
8
AS/400?
Any success stories using rails against a DB2 database on an as400? If so, how? Thanks Ed Schechter -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
5
Fixtures, Postgres & Constraints
...schema and data) between two of my development machines (laptop and desktop) using only subversion and rake. Migrations aren''t really the answer because this isn''t about promotion, just rapid synching from a single script I can run on either machine. -- Jeremy Huffman http://www.jeremyhuffman.com
2006 Mar 25
12
Newbie question about database consistency
I''m a newbie for RoR, and also web dev and database design (but been doing C++ apps for years). I''m trying to learn to use RoR and mySQL by doing a toy project. What I''m trying to do is a web base reservation app for lab machines. I have a number of machines, each can be reserved on hourly basis. So I set up a the following tables: users, machine, reservations. The
2006 Apr 01
2
Can i cache models?
Can i cache models that never get changed? -- _________ Noel R. Morais
2006 Mar 27
0
Solved: RJS Templates Not automatically evaluating
...uto-evaluation magic of prototype worked (and still don''t to be honest). I guess I am a little confused why the content-type wouldn''t be overwritten when the template is rendered but I won''t worry about it. Maybe this will help someone else. -- Jeremy Huffman http://www.jeremyhuffman.com
2006 Mar 23
14
Distribute Rails app. without source code
I have a commercial software that I?d like to completely re-do in Ruby on Rails, as a web application on Apache. But I don?t want to distribute it with the source code. Is there any way to install/deploy and Ruby on Rails application without the source code? Thanks in advance, Jes?s Dugarte.- -- Posted via http://www.ruby-forum.com/.
2006 Apr 02
1
One to Many Relationship Issues
Hi, I am having issues with a one to many relationship(it never works :-)). Jokes aside, I am getting an error: Mysql::Error: #23000Cannot add or update a child row: a foreign key constraint fails: INSERT INTO adverts (`image_url`, `price`, `title`, `website_url`, `description`, `user_id`) VALUES(''bb'', 22.0, ''aa'',
2006 Mar 28
5
combining two models in one controller/view "set"
I''m going to take another stab at this question (my first one received no replies): I have two models: Author has_many: books Book has_one: author I have two tables: authors id ... books id author_id ... I let the scaffolding fly and it created the CRUD goodness for each model, as expected. However, I want to have only one view/controller "set" for both models; when I
2006 Mar 19
38
Macbook for Rails Development
Hi All, I''ve finally got fed up of struggling with Windows and am on the verge of splashing out on a Macbook for Ruby/Rails development. I''ve seen DHH''s post about it on loudthinking but I wondered if anyone else has any more wisdom... Is it worth it over a powerbook? Any tips on good OSX apps for Rails dev (textmate, i know already)? Anything not working well on
2006 Mar 20
16
logic inside a view file
I am quite certain I have heard it said not to put business logic inside view code but I have a report that I want to display 3 different possibilities of text based upon the value of a column. Would I just take the same type of if/then logic that I would use in a controller and put it inside erb <%= %> stuff? Craig
2006 Mar 30
25
TextMate for Rails development -- why?
Greetings, I am curious, I see quite a few references to using TextMate for rails development. I downloaded TextMate and used it for 30 days. I do not see what everyone is raving about. Snipplets are nice, but other editors do the same thing, some with much more power. Can anyone tell me what makes people draw to TextMate? Maybe I am missing the whole reason, I''d really like to
2006 Mar 28
74
Is this an elaborate hoax/troll?
I sure hope so: http://duckdown.blogspot.com/2006/03/additional-thoughts-on-why-ruby-isnt.html Seems like it''s getting genuine rebuttals, though. It''s actually kind of amusing.
2006 Mar 19
0
RJS Templates Don''t Automatically Eval
Following the directions for using RJS has nearly worked for me - actually I''m using it successfully but not the way its documented and others have reported it working. The javascript code is generated properly but its not evaluted. I followed instructions found at: http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates and