I want actions not views.

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2011-01-16T01:35:47Z Indexed on 2011/01/16 1:53 UTC
Read the original article Hit count: 508

Filed under:
|
|

Rails is doing my head in.

I'm trying now to put something together to pull screen scraped data from site X through to client Y via a ruby script on server Z

I don't want views, I just want the request to look like domain.com/action/method

Inside routes.rb I have:

match ':controller(/:action(/:id(.:format)))'

But it still won't work. I just get ActionView::MissingTemplate in the log.

Achtung!

If I deliberately put a faulty method in that subsequently calls render - the log file indicates the method executed badly, so I don't think it's something wrong with the "action" controller.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby