Saturday, November 22nd, 2008
Curious to see how writing ruby code in visualstudio goes ?
Download
http://www.sapphiresteel.com/Ruby-In-Steel-New-Free-Edition
Download
http://ankhsvn.open.collab.net/
Install both
svn checkout your project to some directory. (c:\source)
Launch steel
Go to File -> New Project -> Import Project
Name your project
choose project location (c:\steel-project)
Go Next
Choose your project folder (place where you did svn checkout) (c:\source)
Check mark Rails Project checkbox
Click ok
Click Proceed
Wait.. it will take some time [...]
Sunday, October 12th, 2008
set this var before gem install command
export CXX=g++
Sunday, October 12th, 2008
I tried this before mod_rails launched.
Pushing my command log for reference.
This setup uses rubyworks, details can be found here http://studios.thoughtworks.com/rubyworks
I tried this on a redhat machine. The setup seems to be working perfectly fine.
clear
2 ruby
3 yum install ruby
4 wget http://rubyworks.rubyforge.org/RubyWorks.i386.repo
5 sudo cp RubyWorks.i386.repo /etc/yum.repos.d/
6 uname -A
7 uname -a
8 [...]
Thursday, December 6th, 2007
Well this happens when there are too many files to process:
Best way in this case is to do batch processing:
Sample command:
find . -name ‘ruby_sess.*’ -print0 | xargs -0 rm
Thursday, July 26th, 2007
RAILS_ROOT gives you relative path within the applications it works fine as far as you need the path within rails application.
How about getting absolute path to rails folder?
I found one way, and thats from the ENV hash.
You can use ENV['PWD'] to find absolute path to the rails folder.
Any other ways ??
*Update 4th Oct 2007*
Dir.pwd is [...]
Workaround:
_use_me = frozen_string.dup
page.redirect_to :action => ‘thanks’, :p1 => @g_resp.params["_code"], :p2 => @r_id
Thursday, April 19th, 2007
Problem:
text_field(:member, :dob,:size=>”20″, :maxlength => “50″,:tabindex=>”22″) img_tag
Fix:
text_field(:member, :dob,:size=>”20″, :maxlength => “50″,:tabindex=>”22″) img_tag {:style=”position:absolute”}
Tuesday, January 2nd, 2007
I got this error today while deploying rails application on running lighttpd server.
Errno::ENOENT (No such file or directory – getcwd)
I replaced application directory without stopping lighty and got error while trying accessing app via browser.
I went off by merely restarting lighthttpd
Seems like server creates/uses some file “within” rails app folder which got erased [...]
Sunday, October 8th, 2006
html = <<-EOT
all html goes here
EOT