Witam,
mam problem z autouzupelnaniem tekstu
migracja:
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
…
t.string :city
…
end
end
w application.rb mam <% javascript_include_tag :defaults %>
Controler User
class UsersController < ApplicationController
layout “application”
auto_complete_for :user, :city
…
new.rhtml
…
<%= text_field_with_auto_complete :user, :city, :skip_style => true %>
Nie mam juz zielonego pojecia gdzie tkwi problem (nic sie nie autouzupelnia ). Prosze o pomoc