search for: ahd7jyfbtzlmr6xm

Displaying 11 results from an estimated 11 matches for "ahd7jyfbtzlmr6xm".

2005 Nov 16
3
controller before_filter issues
Hi, Some controller filters: before_filter :require_logged_in, :only => [:create, :new, :confirm] before_filter :init_players, :only => [:create, :new, :confirm] The first one, you guessed it, redirects a user if he''s not logged in. Now when I hit this page and I''m not logged in, the 2nd filter gets executed and throws an error, because it depends on the user
2005 Nov 27
5
OT: good admin gui postgresql on OSX?
Hi, I recently bought by first Mac and I''m looking for some alternatives for my windows applications. Does anybody know a decent gui admin app for postgresql? On windows I use postgresql manager: http://www.sqlmanager.net/en/products/postgresql/manager I find this a very good piece of software and it''s free, even though I paid a little for some extra features. I''d
2005 Dec 20
8
Using rails with stored procedures
Hi all! I am quite new to rails, and I would like to know if there is a tutorial, or if someone can tell me how to use rails with stored procedures and views. Any help would be appreciated. Thanks to all -- ------------------------------------------- Gioachino Bartolotta
2005 Dec 16
3
Productize on 1.0
Hi, Has anybody tried using the Productize plugin on a recent Rails install? The pages on RubyForge http://rubyforge.org/projects/productize/ seem to indicate the development has sort of stalled, or perhaps it''s stable as can be. Just thought I''d ask for before I give it a go.. Cheers, Jeroen
2005 Oct 21
0
newbie configuration question- how to define global config?
Hi, This is more a general question. How would I define global configuration options in Rails? Say I just wanted to define a location (path) where member profile pictures are stored. I''m guessing this should go inside environment.rb. But how would I define it, are there special conventions to avoid clashes with other configurations? Do I use some registry system? TIA, Jeroen
2005 Nov 07
0
pk_and_sequence_for(table) bug?
Hi, Doing connection.pk_and_sequence_for doesn''t return anything when I''m positive I''ve got a PK and sequence on my table on column "id", see DDL below. Is this a bug? ?> Player.primary_key => "id" >> Player.connection.default_sequence_name "players" => "players_id_seq" >>
2005 Nov 19
1
link_to weirdness
Hi, I''ve got a page running at say http://example.com:3000/admin/players Then I''ve this bit of code to generate a URL like: http://example.com:3000/admin/players?order_col=fname&order_dir=desc <%=link_to col[:label], :overwrite_params => { :order_col => col[:field], :order_dir => @order_dir == ''asc'' ? ''desc'' :
2005 Dec 06
1
globalize plugin question
Hi, I''d like to try and use the Globalize plugin, but I only need a subset of the features that plugin provides. I''d like to: - translate text in views - format date/time/numbers using different locales I won''t be using stuff like: Locale.set("en-US") prod = Product.find(1) prod.name -> "Meatballs" Locale.set("es-ES") prod =
2005 Nov 17
7
render :partial in mail template
Hi, Is it possible to render a partial template from within a mail template? I get the following error undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #8): 5: 6: <%= @url %> 7: 8: <%= render_partial ''sig_admin'' %> Jeroen
2005 Oct 17
8
Using active record for SELECT MAX(column) FROM ...
Hi, Is there an easy way of querying an active record for a maximum column value? I need to do queries like: SELECT MAX(salary) FROM employees TIA, Jeroen
2005 Dec 18
13
calculate age based on DoB
Hi, I wrote a little helper that calulates someone''s age based on his/her date of birth. def age(dob) diff = Date.today - dob age = (diff / 365.25).floor age.to_s end It works fine, but it''s not completely accurate as it just takes the average days in a year. It should be able to calculate this more accurately, right? I can''t work it out