Hi guys,
the problem was javascript!!! I've added this lines in my layout and
it worked:
<%= javascript_include_tag :defaults %>
Thank you for your time
Greetings
Kostas
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to thi
On Nov 4, 3:00 pm, "E. Litwin" wrote:
> If you are using jQuery, make sure you have the correct rails.js file
> (the jquery-rails gem will add rake tasks to help manage this).
As a correction, the jquery-rails gem adds a generator (rails generate
jquery:install), not rake tasks.
--
Eric
--
Yo
On Nov 4, 4:23 am, "Kostas L." wrote:
> Hello,
> i have a strange problem here. I have made a teacher controller using
> scaffold. All actions work fine but the delete does not. When i click
> the delete link, it redirects me to the edit of this teacher. I have
> restarted the server and i have tr
On 4 November 2010 20:27, Kostas L. wrote:
> Hi Colin,
> the log file shows the above:
>
> Started GET "/teachers" for 127.0.0.1 at Thu Nov 04 22:16:06 +0200
> 2010
> Processing by TeachersController#index as HTML
> [1m [36mSQL (40.0ms) [0m [1m SELECT name
> FROM sqlite_master
> WHERE type
Hi Colin,
the log file shows the above:
Started GET "/teachers" for 127.0.0.1 at Thu Nov 04 22:16:06 +0200
2010
Processing by TeachersController#index as HTML
[1m [36mSQL (40.0ms) [0m [1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[1m [35m
Oops. Correction on the above answer. It should be GET instead of POST.
If there is no javascript, the delete link sends a get request to your
server. A get request on an existing record gives you the edit action.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because
Sounds like you don't have any javascript files in your Rails app.
Remember that the destroy method uses javascript to work correctly. If
javascript is missing, then the browser sends a POST request to your
Rails server. If you send a post request to an existing record, you get
the edit action
7 matches
Mail list logo