Displaying 4 results from an estimated 4 matches for "johnsshelfer".
2011 May 04
6
Form without scaffold ?
Hi
Strange to Rails.Read the tutorial on Scaffold.Can i generate a
Simple form without using Scaffold?
John
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2011 May 27
3
unable to start server
When i start the server "rails s",following error message appears:
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:167:in
`default_controller_and_action'': missing :controller
2011 Apr 30
8
"uninitialized constant PostsController::Post"
This time i read scaffold tutorial very carefully and finally try to
generate a form without using the scaffold(just used a controller and
view ).what i have done till now ,is as follow.Using rails 3.0.7.
"rails generate controller posts
index"
1) post_controller.rb
class PostsController < ApplicationController
def index
@post=Post.new
2011 May 28
0
Two buttons respond do same action.??
Hey
I am using rails 3.0.7.I created two buttons simply as:
<%= button_to "Great", :action => "click"%>
<%= button_to "click me", :action => "work"%>
Router.rb file looks like:
Check::Application.routes.draw do
# get "gne/clg"
get "posts/index"
resources :posts do
end
#get