Read my latest article: 8 things I look for in a Ruby on Rails app (posted Thu, 06 Jul 2017 16:59:00 GMT)

Ruby on Rails showdown with Java Spring/Hibernate

Posted by Mon, 04 Apr 2005 20:09:31 GMT

Slashdot has an interesting discussion about Ruby on Rails and Java.

RubyURL still growing

Posted by Mon, 04 Apr 2005 19:00:30 GMT

I haven’t had time to work on RubyURL.com for a few weeks, but it’s nice to see that people are still utilizing it. There are over 500 unique RubyURLs currently in the system as of today. I haven’t had any feedback on it in a while and/or complaints… so that is a good sign (I think). I want to add some AJAX to the process… just because I can. :-)

On that note, if you have any feature requests, feedback, etc… please submit them as a comment in this post and I will address them on my next round of updates to the site.

RubyURL still growing

Posted by Mon, 04 Apr 2005 19:00:30 GMT

I haven’t had time to work on RubyURL.com for a few weeks, but it’s nice to see that people are still utilizing it. There are over 500 unique RubyURLs currently in the system as of today. I haven’t had any feedback on it in a while and/or complaints… so that is a good sign (I think). I want to add some AJAX to the process… just because I can. :-)

On that note, if you have any feature requests, feedback, etc… please submit them as a comment in this post and I will address them on my next round of updates to the site.

Need to upgrade my typo install

Posted by Mon, 04 Apr 2005 18:50:58 GMT

A few reasons why I need to upgrade Typo.

Perhaps something to suggest as a feature would be the concept of ‘themes’ or ‘styles’ for Typo. I’d hate to have to go in and change my css/images each time I want to upgrade. I wonder if Tobi has added my PostgreSQL patch to the tree yet. I know two people who are using it (the pgsql patch) currently. Curt Hibbs and myself.

Since I have started to use Typo (only a few weeks now), the list of people using it on the Typo page has gone from 2 listed to over 20.

Need to upgrade my typo install

Posted by Mon, 04 Apr 2005 18:50:58 GMT

A few reasons why I need to upgrade Typo.

Perhaps something to suggest as a feature would be the concept of ‘themes’ or ‘styles’ for Typo. I’d hate to have to go in and change my css/images each time I want to upgrade. I wonder if Tobi has added my PostgreSQL patch to the tree yet. I know two people who are using it (the pgsql patch) currently. Curt Hibbs and myself.

Since I have started to use Typo (only a few weeks now), the list of people using it on the Typo page has gone from 2 listed to over 20.

Adding AJAX to your existing RAILS app

Posted by Sat, 02 Apr 2005 07:23:35 GMT

As of Rails 0.11.0, the Rails team has added Ajax support into the framework. Tha’ts right, you don’t need to spend a bunch of time reading through the Ajax fundamentals to get it integrated into you application. The Rails team has made this very simple to utilize.

First of all, make sure you have at least Rails 0.11.0 (about a week old as of today). Next, open up one of your rhtml files (example: standard-layout.rhtml if you followed one of the cookbook tutorials).

Add the following line inside the <head> of your html file.
  &lt;%= define_javascript_functions %&gt;

Now in one of your controllers, add your new method.

  def myrandom
    render_text SomeModel.gen_random(10)
  end

In this example, SomeModel is a model that has a method called gen_random which returns a random alphanumeric string 10 characters long in this case (was used in rubyurl.com).

The last piece is to add the following to my rhtml file:

&lt;div id="myrandom"&gt;x&lt;/div&gt;

&lt;%= link_to_remote "Generate Random", 
    :update =&gt; "myrandom", 
    :url =&gt; { :action =&gt; "myrandom" } %&gt;

Now, you should be able to run your RAILS app and it will display a button for me and when I hit ‘Generate Random’ it replaces the <div> content with the random string.

Yep, that’s all it took to add a non page refreshing action to your script. Of course you can do a lot of cool things with AJAX and this wasn’t one of those cool things… just a quick example. :-)

Older posts: 1 ... 93 94 95 96 97 ... 99