search for: hiall

Displaying 20 results from an estimated 24 matches for "hiall".

Did you mean: hall
2006 May 18
6
Form actions with additional parameters
Hiall, I want to give the action of a form an additional parameters but can''t figure out how to do it. My code looks like this <%= start_form_tag :action => ''create'', next_step => true %> <%= render :partial => ''user_form'' %> &lt...
2006 May 09
3
Named link to image
Hiall, Call me stupid if you like .,) but it seems i can''t figure out how to get a named link using a combination of link_to and image_tag. What I need is basically a link displaying a name along with some image to indicate status (open,working,finished). I found no combination of link_to and i...
2006 May 01
7
ActiveRecord and Database Views
Hiall, If I have say 10 tables that i would like to wrap up in 1 view to manipulate data inside these tables, do I then need 10 model.rb files for all 10 tables plus 1 for the view, or do I just need 1 model.rb file for the view ? cheers Martin
2006 Jun 14
5
InstantRails Lost connection to MySQL server
Hiall, I just tried out InstantRails version 1.3a. After a virgin install and filling the fresh mysql db with my app schema, I tried runningthe app with webrick, only to see the infamous "Lost connection to mysql server" for every action. What is it that I''m doing wrong? I also have m...
2006 Jun 12
6
Storing "money" in databases
Hiall, I''m wondering what''s common practice when dealing with money values stored in databases. I like the idea of storing all the values as integers, i.e. all the values in eurocents not euros. Then I need to multiply all values the users enter by 100 before storing them in the databa...
2006 May 22
15
collection_select default selected value
Hiall, Unfortunately I just can''t find out how to setup a default selected value when using collection_select. My call is like so: <%= collection_select(:consultant, :lastname, @consultants, :id, :lastname, { :selected => @current_consultant.id } ) %> which is not working, I debugge...
2006 May 16
1
saving a has_one association question
Hiall, Say I have class User has_one :community end class Community belongs_to :user end Will the following work and both save user and community if validation doesn''t fail? user = params[:user] user.community = params[:community] user.save Or do I have to do something like the followi...
2006 May 17
1
Experiences with ModelSecurity
Hiall, I would be very interested in your opinions on the ModelSecurity plugin by Bruce Perens. http://perens.com/FreeSoftware/ModelSecurity/Tutorial.html Some time ago, I read on a few pages that it is the way to go, on this list however, I didn''t read much about it. Apart from it''s...
2013 May 24
1
How to rewrite header from X-Original-To to Delivered-To
HiAll, How to rewrite mail headers from X-Original-To to Delivered-To using sieve script. I am using Dovecot-2.2 and Pigeonhole 0.4. -- Thanks & Regards Kiran Reddy Lead Systems Administrator Unicel Technologies Pvt. Ltd. | C-Block | Second Floor | Vaishnavi Silicon Terrace, 30/1 | Hosur Main...
2006 May 14
4
script/console on windows
Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Pro...
2006 May 14
6
file and directory layout below app/models
Hiall, Is it possible to organize my model files below app/models into subfolders? E.g. I would like to put admin related models into their own subfolder. This kind of structuring works for controllers and views (scaffolding creates the right subfolder-model mappings), but app/models always stays flat....
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen&q...
2006 Aug 17
1
Organizing the db/migrate folder
Hiall, I was wondering how you guys are organizing your migrations files under db/migrate? I have like 60 database tables initially, and if I exercise migrations the way they should be exercised, I guess this will become even more files ... Now maybe you say 70 files ain''t that much anyway :) b...
2014 Nov 11
0
Emne: Re: Eaton-9130 (usbhid-ups) no battery.voltageparameter!
The model should also work with the bcmxcp driver, but maybe that only works with serial, not usb. http://nutwiki.kanonbra.com/wiki/Category:Eaton_Powerware_9130 Alf Sent from my Cat? phone. Valeri Linchevski <lincher at ya.ru>: >Hiall.?Iwaswronginprevouismessage,sorry.IhavetestedthisvalueonotherEaton-9130,anditshowsdifferentvalue,whichcorrespondstovalueonupsdisplay.So,itsarealbatteryvoltage.NominalvalueindebugcallsUps.PowerSummary.ConfigVoltage.?So,howcanIgetthisvalue?Guru,plshelp.?---Valeri???11.11.2014,12:01,"CharlesLeppl...
2007 Apr 18
0
[Bridge] bridge/nf/ebtables patch for 2.4.27?
Hiall! Is there un updated patch for bridge/nf/ebtables for 2.4.27? I tried the patch for 2.4.26 but there were several rejects. Then I patched in the rejects by hand and it zorked, at leqst for now. But to be sure I want someone with knowledge to update the patch instead of me nokey ;-) Best wishes...
2006 Jun 17
0
Dynamic forms containing collections
Hiall, I have the following problem: I need to use forms containing collections (i will call them FCC), and I want to construct them dynamically, as I need to deal with quite large forms (more than 600 input fields). The variables @model_name and @field_name contain the proper model and field names as...
2006 May 14
1
Public class method ActiveRecord::Base.update
Hiall, Given I use forms containing collections and use a statement like Product.update(params[:product].keys, params[:product].values) to update more than one product. What is the best way to determine if this update operation was successfull? I read the apidoc and it says that even if the save fails...
2006 May 24
0
distance_of_time_in_german_words
Hiall, This could be useful for those of you producing websites in the german language. Basically I copied the definition of the rails builtin distance_of_time_in_words and extracted another method german_words_for_distance_in_seconds. Just put these e.g. into module ApplicationHelper and you can use it...
2006 May 24
0
Routes recognition problem
Hiall, I have two modules for my controllers containing the following files /app/controllers/admin/new_controller.rb /app/controllers/admin/list_controller.rb /app/controllers/admin/sidebar_controller /app/controllers/community/input_controller.rb /app/controllers/community/sidebar_controller.rb Each...
2006 May 25
0
Partials question
Hiall, I have a question concerning the use of local variables in partials. Given that obviously all instance variables of the invoking controller are available to the partial (as they are available to the normal template), what situations are there in which to use local variables? Another question conc...