model view controller - What's the Rails way of making super-minimal websites? (1 form --> results page) -
i'm making website simple form on homepage. when user submits form, application crawls website , presents results on new page.
- domain.com has search form (:method => "get")
- domain.com/search/xxxxxx has results of search.
i'm having trouble thinking models , controllers when i'm not working obvious objects users, posts, threads, or shoppingcart.
what's rails way of organizing such application?
try using sinatra
your site should this. rails heavy requirements.
get '/' erb :form, layout => :layout end '/search/:key_word' # use params[:key_word] u want end
Comments
Post a Comment