RailsCasts Pro episodes are now free!

Learn more or hide this

Terfender's Profile

GitHub User: Terfender

Comments by

Avatar

I have the following setup

releases.js.coffee
jQuery ->
  $('#release_anime_title').autocomplete
    source: ['foo', 'food', 'four']
_form.html.erb (release view)
<%= f.text_field :anime_title %>
application.js
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require_tree .

Rails 3.2.12

when I type 'f', nothing gets populated. Any ideas?
I have javascript enabled on my browser.

Avatar

thanks a lot! (works with FireFox and Chrome)

Avatar

It is not working for me. I used both FireFox and Chrome, and I click on "Launch App", but nothing happens

Avatar

Rayan,

Regarding to create a new comment on each model,

ruby
link_to "New Comment", [:new, @commentable, :comment]

I have "news" model and "task" model which is nested under "project" model routing

ruby
  resources :news
  resources :projects do
    resources :tasks do
      resources :comments
    end
  end

Is there a way to accomplish it so I don't have two links?