League admins who want to restrict roster additions after a particular date can now do it by setting this date when creating or editing a season. Admins can still modify rosters after the deadline, but team reps will not be able to.
If you don’t need to lockdown rosters then leave the date empty and everything will work as it did before.
]]>For all those precious bundles of joy in your life, capture their growing years Snap Chop style!
Now available in the App Store for your iPhone.
For more information check out snapchop.me.
]]>James Chambers was a great co-presenter and I had a lot of fun comparing the frameworks with him!
So who won?
The original plan was to have both of us coding at the same time, but unfortunately that couldn’t work because we only had one projector. Instead, we both pre-coded a small application and then took turns demoing the various parts of the frameworks. We broke down the presentation into several “iterations” and Amir Barylko orchestrated the event.
For this round, I mostly showed the rails command line, how to create a new application and a quick demo of the rake tasks. I also generated a scaffold, even though I never use scaffolding anymore.
In this round I showed a very brief tour of Rails’ ActiveRecord. I showed how to associate two models together and I demoed migrations.
We dug into a lot of the “convention over configuration” ideas in Rails here, with a demo of the MVC portions of Rails.
I explained here that Ruby has a deep love for testing. It’s baked into the language and comes with Rails too. I also showed RSpec as my preferred alternative for testing, but really both are great. I also showed some Cucumber scenarios.
I demoed this by deploying to Heroku but in retrospect I should have done a Capistrano demonstration. Either way, it’s very easy to deploy your Rails application with 1 command.
Screenshot below from Amir’s count so that you don’t say I fudged the numbers :)
You can build great stuff on any platform now a days. It’s cool to see what “the other frameworks” are doing to see what we can learn from them. If you’re a .NET dev, play with Rails and check it out!
If you were there and have feedback, please leave some comments.
Thanks to the .NET UG for having me!
]]>I’ll be in the Ruby on Rails corner obviously, and James Chambers will be showing off the ASP.net MVC. The idea is to compare the frameworks and hopefully learn the benefits that each framework as to offer. The referee will be Amir Barylko and he’ll try to keep this thing under control.
I have a feeling it will sorta end up like the end of Rocky IV. Rocky (Ruby on Rails) goes into Russia (.net UG), is hated at first, but then after beating down Drago (ASP.net) the fans switch sides. (hopefully nobody gets brain damage in the sequel)
If you would like to attend, you can register here.
]]>If you bought Snap Chop, thanks for your support! If you haven’t yet, what are you waiting for? Don’t you like funny stuff?
]]>If you are interested in getting started with BDD here are some resources:
Other good stuff:
Screencasts:
]]>Also check out a free demo at snapchop.me
]]>We develop a lot of business related software, so we found it time to do something a bit less serious with the release of Snap Chop. Check it out at http://www.snapchop.me.
Snap Chop is available for your iPhone/iPad or Android device.
]]>Here’s one of my latest finds using for loops…
1 2 3 |
|
Results in…
1 2 3 |
|
The for loop lets you can assign multiple values at the same time which is exactly what you can do with arrays with basic assignment elsewhere in Ruby code.
1
|
|
I knew I could assign multiple values from an array like this, but had never tried it in a for loop before. Ruby ftw!
]]>Enjoy.
]]>Thanks
]]>We’ve recently migrated Redzone to a new data center to improve reliability and performance. To keep up to date on the service status please follow us on twitter @redzoneleagues. Leagues with custom domain names have been contacted with the DNS changes you will need to make, but if you are having problems please contact us support@redzoneleagues.com.
We’ve added support for user configurable statistics. This only applies to stats for certain sports, so you may not see this in use for your league at the moment. Some statistic calculations vary depending on league, so now a league should be able to configure one of the configurable stats to their needs. An example of this is goals against average in hockey; this calculation uses the game length in minutes which could vary between leagues. To see the available statistics options for your league, click on “Statistics Management” under your admin dashboard.
Redzone previously had a limitation of one active season at anytime. Many of our leagues were trying to host tournaments during their season or had multiple seasons going on at the same time, so we’ve added support for this. You can setup your seasons under the admin dashboard.
We have additional features in the works, so stay tuned for more frequent updates. If you’d like to comment or make requests for upcoming features, please either leave a comment in the blog or post a message in our forums
]]>The plugin is available at http://github.com/redlinesoftware/css_asset_tagger
Simply install the plugin and it will tag any assets in your css files with asset timestamps. More information on asset timestamps can be found at http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html
We wrote a previous article on using asset timestamps with nginx, but similar usage applies to Apache as well for example.
The main purpose for writing this plugin is that stylesheets that use images for various things don’t get tagged with the asset timestamps when they’re written as plain old css files. These images can’t make use of expiration techniques very easily without the timestamps. So to make things work as they do with images in rails views, this plugin will add the same timestamps to assets in css files as they are in rails views.
Before…
1 2 3 |
|
After…
1 2 3 |
|
If you’re using yslow and some decent expiration on the server and you don’t like seeing images from your css files being shown in your report card, this plugin should make those all go away and hopefully give you a better grade. :)
]]>Quick update to hockey; we’ve added support for +/- stats as well.
]]>We’ve added new statistics to some of the sports, so you check for those in the “Statistics Management” section of the admin dashboard. If there are statistics that you don’t see, but would like to see added then just send us an email at support@redzoneleagues.com and let us know what additional stats you would like to see.
The game cards haven’t been updated to support the addition of multiple positions yet, but this will be supported in an upcoming release. If your league doesn’t track stats for more than one position then you’ll be fine with the current game cards.
We’ve made some changes to the standings calculations. Points can now be awarded to teams for Overtime losses. This is a common theme in hockey where shootouts occur.
The forums display a users profile picture (avatar) along with their post count.
Other minor changes and fixes have been made as well and we have a few more quick updates coming in the next few weeks; mainly the addition of some new statistics.
Since this is fairly large update, there may be some minor issues that may appear, so if you notice any inconsistencies or issues with any of the statistic values, please let us know and we’ll correct the issues as soon as we can. You can do so by posting a message in our forums or by sending us an email.
]]>If you’re using Postgresql, simply add the following line to your tests/tests_helper.rb
file.
1
|
|
Now you’ll only see messages of ERROR and above in your test output.
Found a better way to do this. In your database.yml file, simply add the following line to your :test section.
1
|
|