search for: cadman

Displaying 15 results from an estimated 15 matches for "cadman".

Did you mean: madman
2006 May 18
7
Server out to excel
How would one server out to excel a html table with the mime/content type application/vnd.ms-excel ? In PHP it would be something like ?php header("Content-Type: application/vnd.ms-excel"); ------ But how do I do this in rails? Cheers Glenn -- Posted via http://www.ruby-forum.com/.
2006 Jun 14
3
How to use at_beginning_of_year
I want to get the Date in formation YYYY-MM-DD for the start of the current year But I cannot think how to do it... This generates a name error .rhtml view. <%= at_beginning_of_year.Time.now %> -- Posted via http://www.ruby-forum.com/.
2008 Jul 01
1
Installing R into home directory?
...using the --prefix option to specify their home directory. This seems to work OK up to a point, but when running make, it seems to expect to be able to install IDL into /usr/local/, and if you are unable to do this, you seem to have to abort make. Any ideas as to how I can work round this? Steve Cadman. -- Steve Cadman Computer Officer / System Administrator Department of Statistical Science University College London Gower Street London WC1E 6BT tel 020 7679 1866 (extension 41866 internally)
2006 Jun 12
4
Some help with fun SQL stuff...
I have one table that stores data related to math problems, and another table that stores users'' answers to those problems. To make this very simple, we''ll say that the math table has two numbers that get subtracted, and the answers table has a field that can either be "pos" or "neg" math _____ 2 5 8 3 Okay so if we do the math, we know that the
2006 Jun 13
13
Pass infomation between different views and controllers
Hi, I am a rails and ruby nuby :-) How do you pass data between different controllers and views? I have a page ( a quote) that I am editing url ....quote/edit/6 6 id the current id. I then go to a catalog (url....catalog) to add an item to my quote (I do this via a line_item file that the quote reads) I now want to go back to the quote. I have tried this <%= link_to ''Back to
2007 Apr 19
4
render_to_string in a model ?
I have a batch job that will call script/runner, I would like in this call to create html formated email and save it to the database. This is easy enough in a controller with yournewhost.email = render_to_string :action => "email_newhost_ready", :layout => false But render_to_string is only available in controller action pack, is there a easy way to render_to_string in a Model? Or
2006 May 26
2
validates_uniqueness_of but only when exists
I want to validate the uniqueness of a field if the field has a value. Is there anyway to do it? -- Posted via http://www.ruby-forum.com/.
2006 May 25
16
yet another rails site - happycarpools.com
I''m pretty much done with a project I''ve been developing to learn Rails, http://www.happycarpools.com . If you could take a look, that''d be awesome! Feedback would be even more awesome! Probably the coolest thing about making this has been seeing how Rails does *so much* and hardly has any superfluous parts, if any. There are so many features that I initially
2006 Jun 16
2
image_select_tag with name and value
What have I missed I have a .rhtml with the sandard form parameters <%= image_submit_tag("excel.gif", :alt => "Download List to Excel", :border => 0, :name => ''render_action'', :value => ''excel'' ) %> Which genenerates I believe a valid html fragment for a submit button. <input alt="Download List to Excel"
2006 May 19
2
How to run direct DML (insert or update)
I want when the user clicks on a button on the browser "Perform monthly billing run" the controller to lanch a sql DML statment to be called (in the model?) than runs something like "insert into billing (item, qnt, total_cost, billing_run_timestamp select item, qnt, item*cost as total_cost, timestamp from services where service_end_date is null" How can I run a DML
2006 Jun 07
16
How dows RoR work?
This is so frustrating. Is RoR that easy to learn or is it hype or is it just me? I wonder how many newbies like me are surfing the docs trying to get a clue of the basics. Every tutorial I find is much the same, and seems to skip the fundmental parts. How should you understand the Ruby API http://api.rubyonrails.org/? What is < ActionController::Base? Can''t I set a cookie under
2006 Jun 07
0
2nd Submit button with options
I wish to have 2 submit buttons one which does a normal sumbit and the other that does a submit but also passes the parameters such as "render_action" . This doesnt work <%= start_form_tag :action => ''list'' %> <%= image_submit_tag("find.gif", :alt => "Find and Display", :border => 0) %> <%= link_to
2006 Jun 12
0
how to get link_to mouse rollover to pop up a "help" box.
I want to have a link_to (<a>) that when the mouse rolls over it (hover) a little if possible semitranspartent "box" (maybe 80px*80px) is displayed with some help/further information included. Is it possible to do this? -- Posted via http://www.ruby-forum.com/.
2006 Jun 19
0
No assign of name and value from image_select_tag ?
I put -- Posted via http://www.ruby-forum.com/.
2006 Jun 19
0
Bug? With image_select_tag processing in controller?
As I wrote in http://www.ruby-forum.com/topic/69600 A) I created a .rhtml <%= image_submit_tag("excel.gif", :alt => "Download List to Excel", :border => 0, :name => ''render_action'', :value => ''excel'' ) %> B) This rendered the valid html <input alt="Download List to Excel" border="0"