similar to: How to pass an array of model objects on a view

Displaying 20 results from an estimated 10000 matches similar to: "How to pass an array of model objects on a view"

2012 Sep 19
7
Renaming Journey and avoiding libraries with common noun names
Hi all, I know this is a long shot, but could renaming the "Journey" module please be considered by those in a position to support it? I''ve written an issue on this in the journey repo also: https://github.com/rails/journey/issues/49 Essentially our project has a model named Journey, the same as Rails 3.2''s new routing driver. As a consequence we can no longer
2006 Feb 27
3
form questions
I have a very simple form that looks allows an input for an error code and then give the show page from the scaffolding if the error code is in the database and a notification on the list page, again from the scaffolding if not. Here''s the form: find.rhtml <h1>Find error</h1> <%= start_form_tag :action => ''search''%> <p><label
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys, Facing a weird error . Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) It seems to be happening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :*
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
Hi Guys, Facing a weird error . Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) It seems to be happening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :*
2007 Apr 24
1
Problem with length of array while calling C from R
Hello, my problem is that I don't know how long must be an array of double while calling C from R. R-Code: > array <- c(1,1,1) > save <- .C ( "Ctest" , a = array ) C-Code: void Ctest ( double *array ) { ... array = (double*) realloc ( array , new_number * sizeof(double) ) ; ... } The length of "array" will be compute in C. At the end save$a has a length
2009 Nov 23
8
Beginner's challenge
Hello, I begun my journey in Ruby on Rails last Saturday and I am having some challenges specifically about the db Where should I go for the specific error listing and how it may be resolved. I googled and most that I''ve searched are not helpful. D -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2017 Jul 02
3
Error while accessing reviews.llvm.org
Hello Devs, I am getting following error while connecting to review server. " A Troublesome Encounter! Woe! This request had its journey cut short by unexpected circumstances (Can Not Connect to MySQL)" Is anyone else facing this? Thanks [image: Inline image 1] -------------- next part -------------- An HTML attachment was scrubbed... URL:
2017 Jul 02
2
Error while accessing reviews.llvm.org
Hello Devs, I am getting following error while connecting to review server. " A Troublesome Encounter! Woe! This request had its journey cut short by unexpected circumstances (Can Not Connect to MySQL)" Is anyone else facing this? Thanks [image: Inline image 1] -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Oct 22
2
Recommendations for image malware detection?
Hello all -- This is not a CentOS specific question, but I have a feeling some of you are involved in enterprise malware efforts, so here goes. Does anyone have recommendations for malware detection that includes detection in image files? I'm looking for something that could be integrated into a batch cron process as opposed to a client end download check. Thanks. --
2009 Nov 02
2
hardware requirements for asterisk
hello friends friend i had just finished my chapters of asterisk. ill be configuring asterisk in for home for r/d purpose. i am having p4 machine with 1 GB RAM, ill be configuring asterisk on centos 5.3, the only doubt which i am having is which hardware ill have to buy to configure asterisk. i think analog card ? plz clear my doubt. n be with me from beginning till end, of the journey of
2010 Oct 30
2
Using names function
Just starting on my journey to learn R and the book I am using is "Using R for Introductory Statistics" One of the problems (page 15, 1.10) goes as follows: The monthly sales fig for 2002 were (2700, 2600, 3050, . . ). Using diff() find the month with greatest increase from prev month. I created a msales var: msales = c(2700, 2600, 3050 . . ) I named them:
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and nested attributes. class ControllerAction < ActiveRecord::Base has_many :interactions, dependent: :destroy has_many :roles, through: :interactions scope :controllers, lambda {|name| where("controller_name_id = ?", name)} scope :actions, lambda {|name| where("action_name_id =
2010 Dec 30
2
Analysing Character Strings for subsequent frequency analysis
Hi I'm trying to get to grips with R and establish R as a teaching medium in my secondary school. I would like to use R to analyse text so I can produce frequency analysis of the text for subsequent examination of ciphers. I can produce code in VBA but I am struggling when writing in R to examine each character. There must be a clear method using the vectorised format of R. Furthermore,
2020 Apr 27
2
C++ JIT Compiler with LLVM on Windows 10 - part 5
Hello LLVM developers! So, I'm continuing my journey with my toy C++ JIT compiler implementation, and I wrote another article on the issues/solutions I've been working on in the past few days, mainly: - Precompiled header handling, - Emulated TLS desactivation, - Globals construction & destruction, - C++ exceptions handling, - Multi modules linking, => In case this could be
2003 Oct 28
2
v3.0.0, AD, 2k3 mumbles
I'm running a Samba 3.0.0 server in production in security = ADS mode against a W2k ADS server. Works just fine, thanks! We're sort of under pressure to regrade to a 2003 AD server, which sent me trying stuff out a bit. Meager results. The 3.0.0 I have (linked with MIT krb5-1.2.8) refuses to verify incoming tickets: [2003/10/28 16:27:36, 3]
2012 Sep 04
2
How to get contact list from yahoo in rails using OAuth
I can successfully get the contacts from google using OAuth gem in rails. my gmail configuration is : :google=>{ :key=>"***", :secret=>"***", :expose => true, :scope=>"https://www.google.com/m8/feeds/" } now i want to get contact from yahoo and hot mail. How to get that contact I have given following configuration in my
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
im working with active admin i have collection_select or dropdown box that populates the packages and crews im just wondering i why this undefined method `[]'' for nil:NilClass` i dont know what happened but it run few days ago and tested it once but now it raises this error are there possible way to solve this? def create @package = Package.find(params[:package_crew][:package_id])
2009 Nov 06
0
Nested objects not propagating from view
I thought I had this fixed, but apparently not. It works okay from the console, but not from the view. I have the following: # partial schema create_table "users", :force => true do |t| t.string "login", :null => false t.string "first_name" t.string "last_name" t.string "email", :null => false
2005 Feb 27
12
Four Days on Rails
There are a number of really good beginner''s guides to Rails on the web now - covering installation through to running the first ''scaffold''. However, as a complete Ruby newbie, I found the next stage - moving on to producing ''real'' applications - quite hard going. To help others make the same journey, I''ve put together a ''next
2006 Sep 11
1
Creating menus with Ruby
Hello all, I''m continuing my journey into Ruby and Rails and would like to find a way to create CSS-compliant menus. I want to restrict what appears on the menu based on the user''s role, so I''m thinking that I''ll store the list of roles in which the user is a member in the session. Does this make sense? Better yet, does anyone have any sample code (or a