Archive for the 'General' Category
Ruby Code Highliter
14Jan07
To post code samples I installed iG:Syntax Hiliter v3.5 for wordpress, which supposedly supports ruby. Now let's try it out:
PLAIN TEXT
RUBY:
def login
case @request.method
when :post
if @session['user'] = User.authenticate(@params['user_login'], @params['user_password'])
flash['notice'] = "Login successful"
redirect_back_or_default :controller => "moneyger", :action => "index"
else
@login = @params['user_login']
@message = "Login unsuccessful"
end
end
end
Excellent! ::-)
Search
You are currently browsing the AtRails - The RoR (ruby on rails) fanweb weblog archives for the 'General' category.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.By label:
- General (1)
- installation (2)
- installing (1)
- projects (1)
- ror hosting (3)


