title: How to use rails post method to get data from client side(android)
body: <p>I want to use post method for getting data alone from client side,How to use post method in def create function for getting data alone.</p>
  
  <p>post controller.rb</p>
  
  <pre><code>def create 
  
      @post = Post.new(params[:post])
      if @post.save
        flash[:notice] = "Prayer Successfully created."
        @posts = Post.paginate(page: params[:page],:per_page =&gt; 5)
      else 
        flash[:notice] = "Error"
        @posts = Post.paginate(page: params[:page],:per_page =&gt; 5)
      end
  
  
    end
  </code></pre>
  
  <p>Post method for getting data from client side,i have to use def create,i am new to ruby on rails,i dont know to use that data from client side using the post method.</p>