Tuesday, February 26, 2008
Using the ActionMailer in your Ruby on Rails application, I wanted to display a variable in the viewer. If the content_type is "text/html", the body needs to have the instance variable symbol e.g. body :var => var. In the viewer, you may reference this variable with <%= @var %>.
Thursday, February 14, 2008
Sunday, February 10, 2008
So it shouldn't be that hard, but it took me about half an hour so I got to document it. I tried mounting a folder shared on my Leopard from an XP machine. This is finally how I got it done:
- In System Preferences, under Network, tab over to WINS and set the Workgroup to something like 'Mshome'
- In System Preferences, under Sharing, click options and check 'Share files and folders under SMB'
- Right click on 'My Computer', clicking on 'Map Network Drive'
- Click 'Browse', and you should see your Mac (for some reason your XP might not see the Mac right away, wait about 5 minutes)