On Mon, May 12, 2014 at 9:25 AM, Jaimin Pandya <[email protected]> wrote:
> When I run test by using following code:
>
> $ bundle exec rspec spec/
>
> then it should be pass which is written Michael hartl book in chapter 8
> after section 8.2.4.
>
> But i got error like:
>
> Failure/Error: click_button "Sign in"
>      ActionView::MissingTemplate:
>        Missing template sessions/create, application/create with
> {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder,
> :coffee]}. Searched in:
>          * "/home/jaimin/rails3/rails_projects/sample_app/app/views"
>

This indicates that your application is trying to render a template
that matches your `create` method in your controller. Generally
speaking, you don't want to render templates from controller methods
that update your data base, such as `create`, `update`, and `destroy`,
since this could result in the user sending the same request if they
reload that page. So instead, you want to perform a redirect. Show us
the controller source code and maybe someone can help with that. Or if
this is enough a clue, carry on learning!


> How can I solve this error?
[snippysnip]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t9ZhT2LxU%2BuiUbgiBc%2BfySSEfzMBL23XUEWjGN2hAVVRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to