RailsCasts Pro episodes are now free!

Learn more or hide this

Doug Puchalski's Profile

GitHub User: aceofspades

Site: http://fullware.net

Comments by Doug Puchalski

Avatar

Thanks again to Ryan.

I've put up a quick post on how to use this approach for warden.

http://fullware.net/prevent-rails-session-hijack-in-warden/

-Doug
www.fullware.net

Avatar

I tweaked my setup a bit to do this, but also to set up an easy mapping to port 3000 for when I'm switching between apps. Add the host 3000.local to your /etc/hosts and then for nginx:

-Doug
www.fullware.net

    upstream local_3000 {
      server 127.0.0.1:3000;
    }
    
    server {
      server_name  3000.local;
      listen       80;
      listen       443 default ssl;
      send_timeout 3600; # For debugging with breakpoints

      #ssl                  on;
      ssl_certificate      server.crt;
      ssl_certificate_key  server.key;

      ssl_session_timeout  5m;

      ssl_protocols  SSLv2 SSLv3 TLSv1;
      ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
      ssl_prefer_server_ciphers   on;

      access_log  /usr/local/var/log/nginx/3000_access.log;
      error_log   /usr/local/var/log/nginx/3000_error.log;

      location / {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_redirect off;
        proxy_pass http://local_3000;
      }
      
    }
Avatar

The custom/plugins/rbates/rbates.plugin.zsh file is required, ok if it's empty.

Might want setopt cshnullglob nullglob in your .zshrc as well to avoid wildcard errors bombing the script.

Avatar

This library appears to be very high quality and very well thought out. It doesn't pigeonhole you into any set back-end implementation, and focuses on a very flexible and intuitive front-end.

-Doug Puchalski
PENSCO
fullware

Avatar

I used ActiveScaffold on a large project in Rails 2.3. I was able to customize everything I needed but it wasn't easy for complex cases. I believe the main fork is not being upgraded to Rails 3.

I've been using ActiveAdmin and agree that it's beautiful and initially feels like a great choice to get started. However, I found myself spending a lot of time fighting the gem to build an app around it. I think it's best suited to use as a customizable scaffold system and that's it. One problem I had was that it uses a DSL-generated layout, so you can't integrate it easily into an existing app. It's really designed around management of resources, not as a general-purpose application framework. All in all, very powerful but it makes things that are easy in Rails a bit harder sometimes.

I'm investigating a switch to Rails Admin myself. It seems to be a bit less automatic and more the "Rails Way", but it may be too early to say.