similar to: One to many relationships

Displaying 20 results from an estimated 200 matches similar to: "One to many relationships"

2012 May 21
1
Active Admin help
I have installed active admin and also add my model -controller rate_professor there.......I can add/delete/edit data using active admin ...but if I click on submit button of my form in rate_professor controller ... I can see whatever I added in the index page ........but I don''t want to see that one.....I want to find the information(whatever I added by clicking submit button) on
2012 Sep 17
1
require current_password to update user information
Rails newbie here, I have been stuck on this for two days and can''t figure out why its not working. I want users to confirm/verify themselves by entering their current/old password before any information is updated. This is what My user_controller update action looks like I''m currently using rails 3.2 with the basic has_secured_password authentication that comes with it. def
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All, just in a spot of bother with this gem, I am trying to create a new location and get the above msg. here is my controller: class LocationsController < ApplicationController # GET /locations # GET /locations.json def index @locations = Location.all @json = Location.all.to_gmaps4rails end respond_to do |format| format.html # index.html.erb
2012 Jun 09
7
ActiveRecord::AssociationTypeMismatch in UsersController#update
Hi Im trying to link my User model to a Teams model. I seem to be getting the following errors. Any help would be great as Im just new to RoR Thanks error ActiveRecord::AssociationTypeMismatch in UsersController#update Team(#2183395560) expected, got String(#2174675960) app/controllers/users_controller.rb:67:in `update'' app/controllers/users_controller.rb:66:in `update''
2013 Feb 10
0
Nested attributes doesnt get updated
Hi Am building a nested form and my code works fine with sqlite3 but throws errors when using Oracle during update action. Am getting the following error: ActiveRecord::RecordNotFound in AWRequestsController#update Couldn''t find WADetail with ID=5000000015 for AWRequest with ID=5000000022.0 Request *Parameters*: {"utf8"=>"✓",
2013 Sep 23
1
redirect on browser success, but redirect on functional test is error
line_items.yml: one: product_id: 1 cart_id: 1 quantity: 1 carts.yml: one: {} product.rb: has_many :line_items cart.rb: has_many :line_items, dependent: :destroy line_item.rb: belongs_to :product belongs_to :cart line_item_controller.rb: def destroy @line_item = LineItem.find(params[:id]) @cart = @line_item.cart @line_item.destroy respond_to do |format| format.html
2018 Mar 26
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
On Sun, Mar 25, 2018 at 08:05:14PM +0000, Nir Soffer wrote: > > > > + sparse = params['output_sparse'], > > > > > > > The user cannot configure that. This must be based on the image > > > format. The current coded may create images in unsupported > > > combinations, e.g. raw/sparse on block storage, or fail validation > >
2010 Nov 01
0
Vimeo API Error.
I am working on an Application which requires Vimeo API. I have done that on separate application but when i am trying to get that thing on actual project it doesn''t work. I have followed this . http://github.com/matthooks/vimeo for getting this up. The error comes when I add config.gem "vimeo" into environment.rb. where as [Awijeet@localhost loc]$ gem list -l vimeo (1.2.2)
2018 Mar 26
0
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
On Sun, Mar 25, 2018 at 11:05 PM Nir Soffer <nirsof@gmail.com> wrote: > On Sun, Mar 25, 2018 at 2:41 PM Richard W.M. Jones <rjones@redhat.com> > wrote: > >> On Sat, Mar 24, 2018 at 10:36:06PM +0000, Nir Soffer wrote: >> > On Thu, Mar 22, 2018 at 5:25 PM Richard W.M. Jones <rjones@redhat.com> >> > wrote: >> > >> > > PROBLEMS:
2011 Oct 07
0
will_paginate + RJS error
Hi there! I need some help, I''m new to rjs + will_paginate and don''t know how to solve this problem. The application apparently is working fine, the partial is rendered by the javascript, the pagination works fine, but sometimes, when I hit the next page number or " next >>", it reders the code below. Im using rails 2.3.8, ruby 1.8.7. and will_paginate 2.3.15
2008 May 10
0
can javascript handle 422 response
I''m toggling a check box via ajax using: application_helper.rb: ............................................................... def toggle_value(object) remote_function(:url => url_for(object), :method => :put, :before => "Element.show(''spinner- #{object.id}'')", :complete
2018 Mar 25
6
Re: [PATCH v7 6/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
On Sun, Mar 25, 2018 at 2:41 PM Richard W.M. Jones <rjones@redhat.com> wrote: > On Sat, Mar 24, 2018 at 10:36:06PM +0000, Nir Soffer wrote: > > On Thu, Mar 22, 2018 at 5:25 PM Richard W.M. Jones <rjones@redhat.com> > > wrote: > > > > > PROBLEMS: > > > - -of qcow2 does not work, with multiple problems > > > * needs to set NBD size to
2008 Jul 04
1
education task view
Dear R-Devel, I have had it in my mind for some time now that a Task View related to R and education might be a good thing. There are currently 19 Task Views, covering a broad spectrum of general topics for which R may be used. The homepage lists 64 books related to R, and several of them have accompanying packages on CRAN. There is a wiki and a host of contributed documentation. We also have a
1999 Jun 07
0
R/C programming and documentation---thanks and summary
Thanks to everyone who helped with my query---Professors Riply, Bates, Lumley, and Tim Keitt. I said <snip> > My worries are > > a) That I've used calloc rather than S_alloc throughout. Professors Bates and Ripley both pointed out that calloc should be replaced by Calloc and free by Free, which, I'll do. ---- I said: > b) That I've used the following
2013 Apr 12
0
[project] ResearchMatch open source project
* Hi everyone– I’ve been working on a cool open-source project at https://github.com/La-comadreja/ResearchMatch, that I think has a lot of potential to connect university students to technology and science. It’s a directory of research and projects, so the students can look for what interests them and apply to projects at their level. We’ve built communities at UC-Berkeley
2011 May 09
0
rails guides - getting started - section 10 security
The example doesn''t work as described for me; not sure if I haven''t followed it right, or there''s a problem with the code. Can someone help me to determine what the problem is. Specifically, after adding the authentication code to the PostsController, with this line: before_filter :authenticate, :except => [:index, :show] The guide says that "we want the user
2010 Apr 14
1
Rails validations app specific problems
Hi all, I have a unique workflow where it''s making the use of validations difficult. My app is for internal use in my company and I have a funky implementation (inspired by the e-commerce Railscasts episodes) of a cart. I have products which when I "add to cart" creates an order with a state of "incomplete". The product is a line item of my order. Hope that makes
2008 Jan 26
0
RSpec and resource_controller plugin
I just discovered James Golick''s resource_controller plugin http://jamesgolick.com/resource_controller after spending another stretch of boredom making the changes to nest yet another rails resource controller. I''d actually slowed down this time to think about what I was doing in hopes of automating the task. I''ve tended to use script/generate rspec_scaffold to get
2008 Jul 29
0
handling multiple lookup tables in rails
I''ve got an application that will have a handful of lookup tables. To be clear by this I mean tables that only have two attributes, id, name and are used to provide drop-down lists for other tables/forms so that these fields have "standard" values. I need 5 to 10 of these tables. I''m a ruby/rails neophyte but I''ve read Agile Web Devel with Rails, Rails
2010 Jun 23
0
Rails 3 - AJAX Response
Hi, I need help with some AJAX in rails 3. So basically, I have a select option in my index page for my User model. This select option is a form that modifies the user''s type. The " :remote => true " works and the type is changed when hit the submit button. But, nothing happens in the browser. The user is updated. I''m actually not sure where to put either my JS /