search for: brianvh

Displaying 20 results from an estimated 33 matches for "brianvh".

Did you mean: brianh
2006 Feb 17
3
Switchtower (0.10.0), ssh and environment confusion
...uot;foo.dartmouth.edu"] processing command [foo.dartmouth.edu] executing command [out :: foo.dartmouth.edu] TERM=xterm [out :: foo.dartmouth.edu] SHELL=/bin/bash [out :: foo.dartmouth.edu] SSH_CLIENT=x.x.x.x 55394 22 [out :: foo.dartmouth.edu] SSH_TTY=/dev/ttyp0 [out :: foo.dartmouth.edu] USER=brianvh [out :: foo.dartmouth.edu] MAIL=/var/mail/brianvh [out :: foo.dartmouth.edu] PATH=/usr/bin:/bin:/usr/sbin:/sbin [out :: foo.dartmouth.edu] PWD=/Users/brianvh [out :: foo.dartmouth.edu] SHLVL=1 [out :: foo.dartmouth.edu] HOME=/Users/brianvh [out :: foo.dartmouth.edu] LOGNAME=brianvh [out :: foo.dart...
2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb def album_list(genre) albums = genre.albums.sort list = albums.collect { |album| link = link_to album.title, :controller => ''albums'', :action => ''show'',
2006 Apr 27
15
Which is faster, calling helpers or rendering a partial?
Using partials is a nice way to separate chunks of content into separate pages as opposed to building strings in helpers, but I''m wondering which is faster. It scares me when I see stuff like: Rendered users/_public (0.00051) Rendered users/_public (0.00009) Rendered users/_public (0.00008) Rendered users/_public (0.00008) Rendered users/_public (0.00008) ....50 more times Has anyone
2006 Apr 28
4
Conditional in Model
Hello ~ Is there a way to determine within a model which controller/action instantiated the model? Thx, -- Ben Reubenstein http://www.benr75.com
2006 Jun 07
9
lighttpd/fastcgi - where does stdout go?
i''m using lighty and fastcgi in my rails production environment. standard output appears to get swallowed up somewhere... it''s clearly not coming out of the development log. don''t know where to look for it. is this a byproduct of running in production mode? is there a way to turn this off? thanks, paul
2006 May 23
7
has_and_belongs_to_many question
Hello, I am trying to make the "switchover" to programming my apps in Rails and have a question about database structure. In the past i would structure a many to many like this: categories ---------------------------------------------------- | id | name | ---------------------------------------------------- 1 Some Category 2 Another
2006 May 02
9
Updating only one field
At present, I use an update like this to set the user''s last login time: authenticated_user.update_attribute(:last_login, Time.now) However, this calls the following, updating all fields: UPDATE users SET `last_login` = ''2006-05-02 13:27:41'', `hashed_password` = .... Is there any way I can tell ActionRecord to only update the one field? I don''t really want
2006 Apr 29
10
A Good Tutorial on Params and Variables
I have found various posts about instance variables, session variables and parameters (each of which seems to use differnet syntax and have different view on the "best practice") I would like to find a single, reliable source that provides a good overview on all of it. Specifically, I would like to learn how to pass parameters between controllers and how to set session variables so
2006 May 08
1
Rails workshops/training in the Upper Valley
Hey, everyone. Wanted to post this announcement to the list. This is for a series of workshops that myself and my business partner are putting on. For those that live in the Northern New England area, looking to get some good hands-on instruction into Rails, this might be for you. Oh.. and don''t be too freaked out by my picture on the front page. I''ve got a fairly
2006 May 16
2
Model layer access control
I already have a simple role based access control system (User, Role, Privilege, Client) in place for my web layer, which checks User.authorized?(controller, action, client) from a before filter. What do you think about using this method for auth checks on the model layer as well, only with made up controller/action strings? (e.g. "model::Period", "close") A bit simplistic
2006 May 28
3
Experience with RSpec
Anyone with experience with RSpec care to share? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060528/29c9ba64/attachment.html
2005 Dec 01
12
Difficult process of restarting SCGI, Lighttpd, Apache, sessions
I''ve managed to get Rails working using Apache->Lighttpd->SCGI. Restarting everything is really difficult. This appears to be the process: - stop apache - stop lighttpd - stop scgi - make sure scgi still isn''t running (it sometimes does) - if it is, kill it - delete all session files (they often cause permission errors) - start scgi - start apache - start lighttpd - cross
2006 May 08
2
Documentation for rails
I''m trying to convince a co-founder of the startup I''m working on that rails is the new black, or possibly the next sliced bread. Does rails ship with doc, or the API? I can''t even figure out how to download it from api.rubyonrails.com, or if that''s possible. When I look in C:\ruby\lib\ruby\gems\1.8\gems\rails-1.1.2\doc I see nothing of use. I have to admit
2006 Jun 05
2
Simple Rake question
Newbie question but here goes: Isn''t rake supposed to automatically search the lib/tasks subdirectory for Rake files/tasks? I have a task called "do_this.rake" in file foo.rake in lib/tasks/rails - how do I invoke it from the command line in the root directory of my Rails application? Presuming I have a file called "Rakefile" in the root directory of my Rails
2006 May 12
6
How to truly separate Logic from view with Rails?
It is something that I have been wondering. When working with other application servers there is often/most of the time a 3 tiers/layers architecture: - Presentation layer/Web services - Application layer - Database layer They often resides on separate machines, 3 different sets. So the application code is logically AND physically separated from the presentation layer. Is this possible with
2006 Apr 23
4
ActiveRecord: Exclude some columns while fetching
I have models with large TEXT, BLOB columns and I don''t wanna fetch them everytime. Is it possible to omit columns when fetching records from DB? Sorry, if it''s trivial, but I can''t find helpful information in docs.
2006 Jan 22
11
ActiveRecord find
Suppose I have three tables - authors, posts and topics. Every post have a topic and every topic has an author, so I have posts.topic_id and topic.author_id. When the author is guest (not registered), author_id is nil. I need to find all the posts (in one query) where every post have all the information of the topic and the auther, so if p is one of those posts I could get the name of the
2006 Feb 01
5
Starting lighttpd/Rails apps as user, not root
Hi everyone, When I want something to start at boot, I put it into /etc/rc*. The service will start as root, though. How do I make it start as a particular user? I''m worried about the machine going down and me not being around to pick my app back up when it does. I think this would also help my SwitchTower issue of having 8 fastcgi processes running for the app. 4 started by
2006 Feb 17
3
Using :include with has_one vs. has_many
While I''m happy to continue talking about the vagaries of Rails deployments, I also need to actually build apps. :) I may have discovered a bit of a problem with :include as it applies to has_one associations. First, let me say that I''m a big fan of :include for reducing the number of SQL calls. There are times when I wish it could go more than 1 step away from the parent
2006 Jun 05
25
RoR on mac OS tiger 10.4.6 latest n greatest?
hi, ive had some trouble trying to install RoR on tiger. during my google search i came across many different installs.. some using apache, lighttpd, or webricks for the web server,,,,,some are using sqlite, or mysql....now ive tried all and it came to a point where im sure i had multiple libraries etc...installed and everything was not working right compared to my ubuntu install of Ror. so