We have joined the GIT band wagon
and have hosted our first public repository on github.
Codes would be in form of snippets, libraries, plugins, and full implementations. All these code are licensed as MIT license, unless until explicitly mentioned.
http://github.com/railsfactory/railsfactory-public/
git clone git://github.com/railsfactory/railsfactory-public.git
update: 20th April 2008
I am commiting myself to opensouring more code from our project and ensure one useful commit per day, for atleast next 100 days
support my efforts by donating if you feel the code is useful for you and your projects
codes which have been commited
a) grouped
converting array data to hash, like with group by with count(*) in sql
b) ActionController logger
logging in following format for processing by linux commands
#method|URL|session_id | timestamp | IP | Status | Controller | action | id |parameters | 0.00075 (1338 reqs/sec)| Rendering: 1.62710 (99%) | DB: 0.00000 (0%) |
c) file joiner
merging files of same file extension for script based processing, to know the usage of a code like a css class, a helper method, code duplication finding for refactoring,
d) find
ruby based grep style searching for source code files
e) filelisting
syntax checking of ruby and embedded ruby(erb/ rhtml) files
f) od2
inspired from linux od command
displays the file and line number and the octal character representation of the non-ASCII characters
g) typo generator
typo generation for use with search engines
mephisto install
Posted by senthil
on Wednesday, September 19
I last installed mephisto many months back for a client.
Now when we required our own blog, I turned to Mephisto.
I faced few problems and but the solutions were simple
downloaded mephisto 0.7.3 Noh-Varr (Bug fixes)
http://s3.amazonaws.com/mephisto-blog/mephisto-0.7.3.tar.gz
I froze my rails version to edge
active resource is not installed when freezing rails so you need do checkout seperately on export from a edge checkout
running gave few errors here are their fixes, mainy due to changes in rails edge a some code has been extracted out of the core
act as list
Paginator error
install classic_pagination
Now when we required our own blog, I turned to Mephisto.
I faced few problems and but the solutions were simple
downloaded mephisto 0.7.3 Noh-Varr (Bug fixes)
http://s3.amazonaws.com/mephisto-blog/mephisto-0.7.3.tar.gz
I froze my rails version to edge
rake rails:freeze:edge
active resource is not installed when freezing rails so you need do checkout seperately on export from a edge checkout
running gave few errors here are their fixes, mainy due to changes in rails edge a some code has been extracted out of the core
act as list
ruby script/plugin install http://dev.rubyonrails.org/svn/rails/plugins/acts_as_list/
Paginator error
install classic_pagination
ruby script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination
login template error
/app/admin/login.rhtml
changed
<% form_tag({:controller=>:account, :action=>:login}, { :id => 'login_form' }) do -%>
to
<% form_tag({:controller=>"account", :action=>"login"}, { :id => 'login_form' }) do -%>
undefined method 'redirect_to_url' for #<AccountController:0x4be21e4 >
changes as per new version in technoweenie's act as authenticated
in lib/authenticated_system
#location_stored? ? redirect_to_url(session[:return_to]) : redirect_to(default)
redirect_to(location_stored? ? session[:return_to] : default)
additions to act as paranoid plugin
def extract_options_from_args!(args) #nodoc
args.last.is_a?(Hash) ? args.pop : {}
end
App is ready
Theme
added scriblish theme from
http://www.quotedprintable.com/pages/scribbish
and added to /themes/site-1/ and configured in admin area
added deploy scripts and configuration for dreamhost deploy and added to our svn and deployed
