similar to: Show validation error messages from a nested model?

Displaying 20 results from an estimated 20000 matches similar to: "Show validation error messages from a nested model?"

2009 Oct 23
4
error: nested-routes with nested-model having foreign keys
Hi, I have this Test, User and Project models where every test belongs_to a project and project has_many tests. Test also belongs_to User as ''owner''. Then i followed railcast#139 to create nested route as - map.resources :projects, :has_many => :tests But somehow i get this error when url is ''http://127.0.0.1:3000/ projects/1/tests'' in
2009 Oct 21
2
Local not passing to partial when validation error
Hello everyone, I am passing a variable (showco) to a partial using: <%= render(:partial => "form", :object => f, :locals=>{:mode => "edit", :showco => @showco } ) %> It works fine if there are no validation errors. However, when an error occurs and the form is redisplayed, the variable is not set. The @showco variable is initialized in the
2009 Mar 06
1
questions
Hello, I have some questions about the library. First, I would like to be able to get how many frames in a movie, skip to a given frame, and render one selected frame. Looking at the API, I see that there are functions for this in swfdec_sprite_movie.h. But I don't see how I can get to those functions starting from a swfdec_player. Second, there are some movies that are collections of
2006 Aug 16
3
Question RE Rails associations
Hi, I am new to Ruby and Rails programming and am having difficulty with the following scenario... Consider the following model: class Studio < ActiveRecord::Base has_many :movies has_and_belongs_to_many :actors end class Movie < ActiveRecord::Base belongs_to :studio has_and_belongs_to_many :actors end class Actor < ActiveRecord::Base has_and_belongs_to_many :studios
2009 Aug 06
13
Redirect after login
Hi, I''m new to Ruby/RoR so please bare with me! I''m trying to adapt a ruby setup where someone logs in to a bonjour service via a web browser. I have the login screen which asks for host and password. There is only one user per host and i can log in fine. It''s suppose to redirect me to /list in my browser but doesn''t. Once i''ve entered the correct
2007 Apr 25
2
Flash Skin and Rails View Issue
Hi, I have an issue embedding a flash movie into one of my rails views. /movies/index.rhtml embeds /resources/movies/episode1.swf and episode1.flv e.g index.rhtml includes: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320"
2012 Oct 21
5
Error occured while evaluating nil
This is the code if !params[:ratings].nil? params[:ratings].each_key do |r| @selected_ratings << r @movies << Movie.where(''rating = :rating'', :rating => r) @sort = params[:sort] end elsif @selected_ratings = @all_ratings @movies = Movie.order(@sort) @sort = params[:sort] end This is the error You have a nil object
2007 Aug 16
1
Branch 'vivi' - vivified/ui
vivified/ui/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) New commits: diff-tree be3bc1a6cd88c0f2294b4f6059898c3989f172eb (from da8a9e9b145d5cb1aebc04764e9ed66856a31c9b) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 16 21:42:39 2007 +0200 Set the title correctly diff --git a/vivified/ui/main.c b/vivified/ui/main.c index df123a9..13d03ab 100644 ---
2006 Dec 13
6
triggering a query within a loop
Any help with this would be very appreciated, I''m completely new to rails. I''m building an application that''s looking to do the following: First off i''m trying to convert my site from ColdFusion to RoR, this is the site: http://www.walkenclips.com/ It''s one page that basically does this: Query the db to get a list of movies (movies table) Loop
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
libswfdec/swfdec_graphic_movie.c | 35 +++++++++++++++++++++++++++++++++++ libswfdec/swfdec_movie.c | 3 +++ libswfdec/swfdec_movie.h | 2 ++ libswfdec/swfdec_sprite_movie.c | 13 ++++++++----- 4 files changed, 48 insertions(+), 5 deletions(-) New commits: diff-tree 255d2e184bae07fbcd9db8a906450a21e0f687c7 (from 9ed04d23be28c9dd349a2f5024546c465d09da96) Author: Benjamin
2012 Oct 10
5
Theora integration question
Hello, I am programmer working on a product which integrates Theora. I have a question regarding the memory use on some of the internals of Theora. Is this the right forum for this question, and if not, does anyone know where an appropriate place to ask is? Thanks Sam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2023 Dec 27
1
User doesn't have write access to directory
I have a user that is a member of a group that should have write access to a directory but they cannot write to the directory. $ la | grep Movies drwxr-xr-x 345 *HOME\movie editors* HOME\movie users 36K May 22 2023 *Movies* $ id testuser uid=3000038(HOME\testuser) gid=100(*users*) groups=100(users),3000038(HOME\testuser),3000026(HOME\photo users),*3000031(HOME\movie
2006 Jan 21
7
n-way joins
Hi, I''m somewhat of a Rails newbie and am trying to understand how to formulate n-way (3 or 4 way) joins in Rails (where the join tables contain extra data as well.) Let me give you my basic entities: foos id - pk name - unique bars id - pk name - unique bazs id - pk name - unique frozs id - pk name - unique then i have two separate join tables: foos_bars_bazs - 3 way join
2004 Jun 18
5
Slowdown on lots of motion
I'm playing the "Honey" movie (both Honey-small and Honey-large) and I notice significant slowdown during periods of lots of motion (when the camera shakes, when the first man hops into bed, when people turn around and approach the camera, etc.). The audio plays smoothly all the time but when there is a lot of motion, the picture freezes and resumes when there's less motion.
2023 Dec 28
1
User doesn't have write access to directory
On Wed, 27 Dec 2023 17:22:21 -0500 Rob Campbell via samba <samba at lists.samba.org> wrote: > I have a user that is a member of a group that should have write > access to a directory but they cannot write to the directory. > > > $ la | grep Movies > drwxr-xr-x 345 *HOME\movie editors* HOME\movie users 36K > May 22 2023 *Movies* > > $ id testuser
2009 Jan 08
1
debug rails code in radrails
Hi I would like to know how to debug rails code. I am using radrail v0.7.2 Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Sep 18
10
How do i make rails wait until an ffmpeg call is complete?
In my app i upload a file, convert it with ffmpeg, delete the original and make a small thumbnail out of the big thumbnail ffmpeg makes. At the moment it seems like these actions are tripping over each other - how can i make the app wait until ffmpeg has completed it''s output before doing the next thing? -- Posted via http://www.ruby-forum.com/.
2012 Jul 26
2
Get XML or JSON data from api into data frame
Dear all, I am new to R in general and ways to retrieve XML or JSON data in particular. I have tried to get information through the XML package and various websites without being able to do exactly what I want. I hope someone of you can give me some help. I want to retrieve information about movies from IMDB or rather the unofficial api, www.imdbapi.com. I have a vector with a lot movie-ids
2004 Jul 08
3
asterisk to asterisk config
Hi, I would like to set two separate asterisks to talk to each other. Any suggestions? I'm a "baby" asterisk fan, only started to play two weeks ago, first managed to use kphone with asterisk and a X100P card that is up and running as well. Thanks, Eugen Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com
2008 May 13
4
calling another rjs file in an if condition
Hi I have a controller action like below.This def is called by a submit_to_remote def edit_service_desk_status_after_transfer if params[:transfer_reason].empty? #This is used in the :failure of submit_to_remote else @sd_ticket = ServiceDeskTicket.find(params[:sd_id]) ActiveRecord::Base.transaction do @sd_status_history = ServiceDeskStatusHistory.new