Hello,
I also would like to run Rails 2.0... so i put the latest Rails version in my vendor directory. The application launches OK but it doesn't understand the RESTful stuff. For example I have a resource called "products". In my routes.rb I have the following statement "map.resources :products" I can browse "host.com/products/new" without problem but when I click the "create" button, it redirects me back to the "index" method instead of creating the record using the http "POST" method. The webform looks like :
<form action="/products" class="new_product" id="new_product" method="post">
...
<input id="product_submit" name="commit" type="submit" value="Create" />
</form>
Normally with Rails 2.0, clicking on the submit button should automatically call the "create" method in the Products controller. The same application works fine on my dev machine. Maybe it has something to do with the Apache server?
Can someone help me?
2007-12-18 11:11 AM