[Rails] rails-brakeman.com, an online service to find security issues in your rails projects

2012-05-22 Thread huang zhimin
Hi, I just released rails-brakeman.com, it is an online service to find security issues in your rails projects, it works based on Justin's great gem brakeman . Rails developers always write code fast, but sometimes they leave some security issues in thei

[Rails] post jobs on rails-bestpractices.com

2011-05-08 Thread huang zhimin
Hi, I'm glad to say that job board has been added on rails-bestpractices.com, you can post ruby/rails related jobs on it, I hope companies can find good rails developers and rails developers can find good rails jobs on it, it's a win-win. Thanks, Richard -- Best regards, Richard Huang flyer...@

[Rails] rails_best_practices 0.6.0 released

2010-12-24 Thread huang zhimin
Hi all, I just released rails_best_practices 0.6.0, I did a lot of refactorings, created rdoc webiste and google group, check out the announcement here . -- Best regards, Richard Huang flyer...@gmail.c

[Rails] switch_user 0.4.0 released

2010-11-09 Thread huang zhimin
Hi, Inspired from hobo, switch_user provides a convenient way to switch current user that speeds up your development, so that you don't waste your time to logout, login and input email (login) or password any more. It can help you reproduce the user specif

[Rails] Ask for best practices on rails-bestpractices.com

2010-08-22 Thread huang zhimin
Hi http://rails-bestpractices.com added a new feature, asking for best practices, it allows users to ask for a best practice about any rails related work, such as "How to detect N+1 queries?" and "How to upload a large file with progress bar?". Then everyone can post your answer with your own best

[Rails] rails_best_practices gem 0.4.0 released

2010-08-16 Thread huang zhimin
Hi, I have released rails_best_practices 0.4.0, rails_best_practices is a code metric tool for rails codes, from 0.4.0, it can check the rails3 codes better. The project repository is here: http://github.com/flyerhzm/rails_best_practices In addition, if you want to add your rails best practices

[Rails] http://rails-bestpractices.com launched

2010-08-09 Thread huang zhimin
Hi I'm glad to tell you http://rails-bestpractices.com is now launched. It's a website that provides the best practices to write rails codes and everybody can share his/her practices. It's also the home page of rails_best_practices gem. Now we have two administrators, @ihower is the presenter of

[Rails] css sprite best practices

2010-04-05 Thread huang zhimin
Hi all, Last week I wrote a post "css sprite best prachtices". The practices follow the idea "Convention Over Configuration" to do the css sprite automatically (by using my css_sprite gem/plugi

[Rails] flog problem when run rake metrics:all

2009-06-27 Thread huang zhimin
I encountered a problem when I run rake metrics:all, the full stack trace is as follows: ** Invoke metrics:all (first_time) ** Execute metrics:all /usr/lib/ruby/gems/1.8/gems/flog-2.1.2/bin/flog:11: undefined method `flog_files' for # (NoMethodError) from /usr/bin/flog:19:in `load' from /usr/bin/f

[Rails] Re: where is reaper in Rails 2.3.2

2009-06-06 Thread huang zhimin
Cool. Thanks. On Saturday, June 6, 2009, Frederick Cheung wrote: > > > > On Jun 6, 4:17 am, huang zhimin wrote: >> I'm using capistrano to deploy my rails app to hostmonster, where using >> fastcgi. >> I see a lot of examples that the restart task in capistra

[Rails] where is reaper in Rails 2.3.2

2009-06-05 Thread huang zhimin
I'm using capistrano to deploy my rails app to hostmonster, where using fastcgi. I see a lot of examples that the restart task in capistrano is ./script/process/reaper --action=restart --dispatcher=dispatch.fcgi but rails 2.3.2 does not have process directory, so how can i define restart task? -

[Rails] rspec to xhr

2009-05-26 Thread huang zhimin
when i want to test an ajax action, it always can't passed. The action code is: # POST /posts/:id/comments def create @comment = @post.comments.build(params[:comment]) if @comment.save flash[:notice] = 'Comment was successfully created.' render :update do |page| pa

[Rails] Re: Multithreaded BG task which does AR updates okay?

2009-05-21 Thread huang zhimin
What we do is to write a rake task that make AR update, and add this running task into cron job, it's easy and safe. On Fri, May 22, 2009 at 9:06 AM, Tim Haines wrote: > > Hey guys, > > I'm thinking about writing a method which utilises multithreading to > do a bunch of api > calls and make AR u

[Rails] Re: Javascript

2009-02-19 Thread huang zhimin
ascript > manipulation can be done on it > > > > huang zhimin wrote: > > <% javascript_tag do -%> > > # javascript codes > > <% end -%> > > > > hope this can help you > > > > On Fri, Feb 20, 2009 at 1:53 PM, Nisha Thoprath < >

[Rails] Re: Javascript

2009-02-19 Thread huang zhimin
<% javascript_tag do -%> # javascript codes <% end -%> hope this can help you On Fri, Feb 20, 2009 at 1:53 PM, Nisha Thoprath < rails-mailing-l...@andreas-s.net> wrote: > > Please tell me how to integrate javascript in ruby code(in rhtml page) > -- > Posted via http://www.ruby-forum.com/. >