Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sangaur

@sangaur
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Ruby on Rails:ForbiddenAttributesError
    S sangaur

    Hi everyone I am new to RoR and i am struck in a problem . I am trying to build a project named "new post" but i am getting an error named as ForbiddenAttributesError in file named as Post Controller. code written in that file is as follows: ========================================================= class PostsController < ApplicationController def new end def create @post= Post.new(params[:post]) @postsave redirect_to @post end private def post_params params.require(:post).permit(:title, :text) end def show @post=Post.find(params[:id]) redirect_to @post end def index @posts= Post.all end end ========================================================== Thanks

    Ruby On Rails ruby help database
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups