Ruby on Rails Tuesday, March 22, 2016

On 22 March 2016 at 18:52, Aman Aman <lists@ruby-forum.com> wrote:
> I have just installed ruby on rails on my window. and I was going
> through tutorials in
> http://guides.rubyonrails.org/v4.2/getting_started.html and I am getting
> this error (ExecJS::ProgramError in Articles#index ) So I just removed
> the line no 6 from /app/views/layouts/application.html.erb that is <%=
> javascript_include_tag 'application', 'data-turbolinks-track' => true %>
>
> And issue solved. and going further with the tutorial I came up in
> delete operation.
> http://guides.rubyonrails.org/v4.2/getting_started.html#deleting-articles
>
> But my data is not getting deleted. It just redirect to the show page of
> the data which I want to delete.

First look in log/development.log and see what is added when you click
the delete link. There you should see which action is called, the
parameters, and what happens next. If that all looks correct then you
can insert simple debug statements into your code using code such as
logger.info "some_varlable is #{some_variable.inspect}"
the result will appear in development.log

However I suggest that to get started you might be better to work
right through the tutorial at railstutorial.org (which is free to use
online). That can be done using an IDE in the cloud9 so you are not
reliant on s/w installed on your PC.

Colin

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtVkjazDe-%3DMBuMM51LSb%2BEHcT55SXxH5MkPGe6FDB5pA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment