similar to: problem with auto increment in rails 3

Displaying 20 results from an estimated 5000 matches similar to: "problem with auto increment in rails 3"

2011 Sep 21
5
problem with submit button in rails 3
hi, i am using <%= s.submit ''Product save'' %> when i click it, following error appears " Routing Error uninitialized constant ProductsController" could any one provide me solution ? thanks, -pab -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2011 Sep 09
2
acst_as_solr error
hi, i am using https://github.com/mattmatt/acts_as_solr it shows the following error "undefined method ''each'' for " for this results = Employee.find_by_solr(@id) results.each do |emp| puts emp.id end where plugin does not contains "each" method in acts_as_solr/libs/ search_results.rb so for me each is not working with ActsAsSolr::SearchResults
2011 Aug 31
9
undefined method `model_name' for NilClass:Class in rails 3.0.0
Hi, i got search which shows following error ActionView::Template::Error (undefined method `model_name'' for NilClass:Class): 1: <%= form_for(@employee) do |e| %> 2: EMP ID<%= e.text_field :id %><br> 3: <%= e.submit ''search'', :controller => ''employees'', :action => ''search1'' %>
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi, i am using rails 3.0.10 i am trying with sample application for searching data from table and updating my search.html.erb file is <%= form_for (@employee) do |s|% <div id ="search_details"> <%= s.text_field :name%> <%= s.text_field :emp_id, :onfocus => ''sal(document.getElementById(''employee_name'').value);''%>
2011 Sep 08
8
acts_as_solr problem ActsAsSolr::SearchResults:
hi, i am using acts_as_solr plugin when i tried with search by def search puts "#####################" # ids = params[:name] @id = params[:query] @emp = Employee.find_by_solr(@id) puts "------------------------------#{@emp}" respond_to do |format| format.html{render :action => ''search''} format.xml end
2006 Oct 31
4
Auto-increment lost during migration.
Hi. I get some strange results when using rename_column on a primary key in a migration. It seems like the migration script removes the auto-increment property if you rename a column. This is a minimal example. create_table :foo, :primary_key => :foo_id do |t| t.column "name", :string end # renaming the primary key makes auto-increment disappear. rename_column
2011 Dec 15
1
problem with starting mongrel gem
Hi, I have installed mongrel gem and when i tried to start mongrel_rails start its causing me following problem mongrel_rails start ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Requiring REXML /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/ active_support/dependencies.rb:239:in `require'': no such file to load --
2009 May 01
1
how to disable auto-increment in primary key.
How can i disable the auto-increment for a primary key data type. The purpose of using primary_key data type is using different name for primary key. But we still want to use all the properties of "id" except for auto increment part. I had my migration as following #=============MIGRATION def self.up create_table :pk2s , :id=> false do |t| t.primary_key :uid
2006 May 14
3
Strange Database Mapping Question
Dear Rails List, I am new on the list so will assume straight away that this question has been answered before. As I can see no immediate way of searching the list, I will ask the question. I apologize in advance for any disruption this may cause. Question time: I am trying to write a web application for the staff at my office to play a form of virtual Super14. Its a bit like any of the
2005 Dec 30
2
Domtools.com hyjacked?
Attempted to install dlint port. Only distribution site is www.domtools.com Email to 'content@domtools.com' and pab@domtools.com bounces (can't relay) Phone number missing on whois record. Fetch of tarball fails checksum (it delivers a generic 'web hosted search engine that just hijacked someone's domain' web page. Maybe domtools didn't renew? New web company
2006 Apr 02
5
adding primary_key to join table using migrations
Hi list, My tag_question_user join table is not currently a full-blown model. It doesn''t have a primary key - just tag_id, question_id, and user_id. I now want to add a primary key to this model (because I want to add a "description" column as well so users can describe the tag. I''m not sure how to add this using migrations. Here is what I have: class AddNotesToTags
2009 Nov 19
4
mac client and inherited permissions
Hi everyone, We are a longtime samba/win desktop shop but are getting more Macs. Samba sernet rpms 3.3.9 on CentOS 5.4 test box (started to test 3.43 but will wait) and I confirmed a problem I have been having in production. Server is ADS member with ldap stored idmap. All AD auth and idmap are identical to production servers and have been working fine for years. Filesystem is XFS and there are
2012 Jun 13
2
Samba 64 bit compilation
Which platform? If on Solaris 10 sparc, GCC (either from Sun or sunfreeware.com) should be 64-bit by default. GCC from Sunfreeware for Solaris 10 x86 will compile 32-bit by default. For Solaris, you are better off using Sun Studio and Dmake. Actually, you are better off just using the compiled version from Oracle/Sun. On 06/13/12 02:08, prabu.murugan at emc.com wrote: > Hi, > >
2012 May 17
3
Samba compilation issue
On 05/17/12 11:15, prabu.murugan at emc.com wrote: > > Hi, > > As a security concern we are upgrading samba to 3.4.17. > > I tried all possible option to compile samba 3.4.17 on Solaris 10_U10. > But it is not going through. > > > > User requirement is to compile samba 3.4.17 to support their > application. 3.4.17 is working on Solaris 9 and Solaris 10_U5. But
2006 Feb 27
2
Migrations - How to set auto increment?
Hi all, I''d like to know how can I set a field to auto increment in migrate scripts. In mysql, it''s auto_increment, and in postgresql, it''s serial. How can I make a migrate script which works in both places? TIA, Vamsee. -- Posted via http://www.ruby-forum.com/.
2012 Apr 10
6
User Association
Please Im trying to create an application where i can post like twitter, but i was the users name to be posted under their respective posts My Post_controller looks like this def index @posts = Post.all(:order => "created_at DESC") @users = User.find(:all) #@user_id = current_user.find(params[:id]) respond_to do |format| format.html end end def create
2006 Jan 05
3
ActiveRecord setting IDs on auto increment fields
Hi All, I''ve tried to do my searches, but can''t find reference to this anywhere - My question is about ActiveRecord inserts and IDs. I have a join table that both the models of the source tables join with "has_and_belongs_to_many". It seems like ActiveRecord is setting the "id" field for the join table- This should be an auto_increment and
2010 Jun 16
2
class methods from module where active rec is involved
I have a module as shown below and when I extend an active record to use it, I can not access the primary_key method. In a simple test program using a similar approach where active record is not involved, access to the class methods seems to work ok. What can I do to make this work or so that I can access the class methods ? ################################## require
2012 Jan 10
5
6 fundamental migration problems for beginners
## Hi ## I have 6 simple and fundamental Problem in RoR migration and although I googled it and read many article about it and research it for a week , I didn''t understand it. please help me for these problems : ---------- 1 - When I create a model (for example "rails generate model Football_League") , I see in db/migration a "create_football_leagues.rb" . I want
2012 May 15
1
Samba 3.4.17 -Solaris10_U10- make- Fatal error with talloc
Hi, This is Prabu. I am trying to compile samba on Solaris 10_U10. I have posted the same in bugzilla. https://bugzilla.samba.org/show_bug.cgi?id=8939 User requirement is to compile samba 3.4.17 to support their application. 3.4.17 is working on Solaris 9 and Solaris 10_U5. But not on Solaris 10_U10. ./configure and make gives error related to talloc. I have set the PKG_CONFIG_PATH. It is not