search for: markhaliday

Displaying 12 results from an estimated 12 matches for "markhaliday".

2006 Feb 01
5
lighttpd not starting on os X (intel)
Hi all, I''m followed the instructions written here to prepare my new iMac for Ruby / Rails developement: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger When I run script/server I get the following output: harm-de-laats-computer:~/rails/test harmdelaat$ script/server => Booting lighttpd (use ''script/server webrick'' to force WEBrick) =>
2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all setup. A couple of issues though: 1. Is the Ruby 1.8.2 install by Apple still botched or has that been fixed? I recall someone had fixed the rbconfig.rb to get it working. Is this something I still have to do? 2. Does anyone know if Locomotive is using the uniersal binaries, or is it targetting PPC yet? I couldn''t
2005 Dec 31
1
Custom Classes?
Ok, a bit of a possibly dumb question here. When working on Rails apps and I want to add a few custom class rb files to the project, where exactly should I put them? What folder is the best to place them in that things in the model and controller folder can see and use them? Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2006 Jan 04
7
<% if ... -%> What is this?
I seen some RoR code that went like this: <% if ...blah, blah... -%> .. blah, blah <% end -%> What are the minus signs for in the if statement? Cannot seem to find anything about this, and searching on "-" in this context is hard to get anything meaningfull back. Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2006 Feb 14
18
Does shared hosting work? Anywhere?
I moved a rails application to textdrive using their low-cost shared plan. Once on textdrive my app would display ''proxy errors'' periodically. Hitting reload seemed to be all that was needed to get past the proxy error. After discussions with their support people I decided the proxy errors were being caused by apache server restarts -- because there were many of us sharing one
2006 Feb 11
7
Rails development on Mac OS X 10.4 Intel
Hi all, I would like to start a thread on RoR related issues on the new Intel version of Mac OS X. I have been using Apple''s new iMac Core Duo (which comes with Intel version of Mac OS X) for about a week now. Here''s my experience: Ruby 1.8.4: It compiles albeit with many warnings. Most warnings were about "differ in signedness". It seems to work okay
2006 Jan 05
40
RoR sucks, and heres why...
Well now that I got your attention.... Why RoR sucks: 1. It''s smarter than me. Just when I think I''ll have to do some mundane thing (like I use to in PHP or ASP), I find out RoR does it already for me. 2. It takes about half or less code to put my stuff together in RoR than it did in PHP, ASP, ASP.NET, etc. It seems so unnatural that I can have a method with only 4 lines
2006 Jan 13
2
Select multiple question
I''ve got the following code in my view: <select name="user[member_list][]" multiple="multiple"> <%= options_from_collection_for_select @someUsers, "id", "username" %> </select> I have a few other fields, textboxes, etc. within the form. When I go to save the info, the textboxes all save with their content, but the select box
2006 Jan 08
3
Getting the current Action in the Model
Is it possible to get the current Controller''s action from within the Model? I have a situation where I want a piece of validation to run on edits, but not on new creates. Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2005 Dec 17
2
Encrypting files
Anyone know of a good (fast) way to encrypt/decrypt uploaded files in RoR? I''ve seen this project: http://ezcrypto.rubyforge.org/ but it only seems to encrypt strings and such. I need to encrypt files once they are uploaded, then decrypt them when they request the file back. Any ideas? Thanks, Mark -- Posted via http://www.ruby-forum.com/.
2005 Dec 16
5
Question: image_tag(source, options = {})
image_tag(source, options = {}) Ok, when I want to use an image I added the following code: <%= image_tag "dsf.jpg" options = {[align="right", style="padding-right: 10px; padding-top: 5px;"]} %> However, this doesn''t seem to work, it doesn''t like how I have the "options" part setup. I''m sure there is something very easy
2006 Feb 19
8
require ''digest/md5'' not working on Mac or Windows
I''ve tried the following line in ruby script/console require ''digest/md5'' Both my Mac (Intel iMac) and my Windows box return "false"... Any ideas what could be wrong? I was trying to do the RoR Recipe on page 54 of Chad Fowler''s new (beta) book. -Mark -- Posted via http://www.ruby-forum.com/.