similar to: Find by id in the view template dynamically

Displaying 20 results from an estimated 2000 matches similar to: "Find by id in the view template dynamically"

2006 Jul 15
3
How bad is it to have 7 joins in my find_by_sql?
My question is whether there''s a more idiomatic rails way of structuring this query or of redoing the underlying models. First, the ugly find_by_sql code, which is the method to generate an atom feed: def atom items_per_feed = 15 sql_query = "SELECT activities.*, users.real_name AS real_name, accounts.last_scraped_at AS last_scraped_at,
2012 Nov 12
7
RSpec: controller POST create
Rails 3.1.3 rspec-rails (2.11.4) rspec 2.11.1 I am new to rspec. I don''t quite understand tests for POST create part. I have generated scaffold, and simultaneously it generated controller_spec.rb as well. it "assigns a newly created plan as @plan" do post :create, {:plan => valid_attributes}, valid_session assigns(:plan).should be_a(Plan)
2007 Jan 30
3
Toll-free dialing via PRI problem
We have a PRI from Telepacific. Asterisk 1.2 and a Sangoma A101 T1 card. Outgoing calls to certain toll-fee (8XX) numbers fail -- we hear ringing but the calls are never answered. All other calls, and most toll-free numbers are not affected. The numbers that are affected are all travel related companies (United Airlines, American Airlines, US Air, Starwood Hotels, etc.) we cannot connect to
2009 Aug 27
2
Setting @request.env["HTTP_REFERER"] in an integration test
Hi. I would like to set @request.env["HTTP_REFERER"] in an integration test, but due to its nature, I would naturally set this value to the previousle request url. How do I do that. Thanks. Jarl
2009 Aug 25
28
Anything but Aptana
Not trying to get into a "What''s a good IDE" here, BUT....On Windows....RadRails never cut it. Under Aptana, it''s a terrible joke, and I''m sick of losing so much time waiting not only for this thing to initialize, but the hanging and crashing I go through is killing me. Please, someone....point me to a decent, lightweight IDE. All i want is syntax coloring.
2012 Sep 22
1
formtastic does not save at all
Rails 3.1.3 I am using Formtastic gem in order to deal with multi-select dependencies. <%= semantic_form_for(@give) do |f| %> <%= f.inputs do %> <%= f.input :departure, :collection => Departure.find(:all, :order=>:city).collect{ |c| [c.city,c.id]}, :required=>true %> <div id="destinationCity"> <%= render :partial =>
2012 Mar 12
4
how to design a api?
hi,everyone. now i start to design a api. the url like this http://localhost:3000/api?seckey=123&&post_id=1 the visitor need a seckey to access auth.and get info via json. so i dont think thats a good api. i need your answers.thx -- 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
2005 Jul 12
3
Unable to call certain 800 numbers through Teliax
We are unable to call certain 800 numbers through Teliax but I thought I would post this here and see if anyone else had the same problem with either Teliax or other carriers. The 800 numbers causing problems pick-up the call right away and are in the US - American Airlines (8004337300) and Staples (800-378-2753) - we can call many other 800 numbers just fine. Our asterisk setup has a 4-port
2006 Nov 04
13
Caching application data
Hi, say my application has a small 20 row information table in the database that stores names of airlines: "continental", "delta", united" , etc... These names will be used in various pages of the application for all the website users for different actions. They do not expect to change often. what I do now is - when a user logs in - these airline names are queried
2006 Feb 21
2
Call queue design issues and suggestions
Greetings to all. I am currently implementing call queues for a customer and have come across several "problems". The customer is an airline representative, and will be using call queues for different airline reservations. The customer requires that any agent be able to login to any number of queues. This means that queue members have to be dynamic, not using "member =>
2012 Sep 10
2
suggestion for user-friendly input: typeahead
Rails 3.1.3 I am hoping some of you may give me suggestions about user input helper methods. I have a large set of model, Flight, and its fields are airline, flight_name, departure, destination As you can imagine, the flight data will be very large; it could be thousands if it is international. I will ask users to input the desired flight plan, and it will be crucial if the users make
2010 Aug 11
1
Bigmemory: Error Running Example
Hi, I am trying to run the bigmemory example provided on the http://www.bigmemory.org/ The example runs on the "airline data" and generates summary of the csv files:- library(bigmemory) library(biganalytics) x <- read.big.matrix("2005.csv", type="integer", header=TRUE, backingfile="airline.bin", descriptorfile="airline.desc",
2005 Aug 12
3
Voipjet experiment
Hi List, I'm wondering if someone who uses VoipJet as their termination service would do me a favor. If I call the American Airlines reservation number (1-800-433-7300), the call gets connected, but after 30 seconds asterisk drops the call responding that no one answered. I'm using areskicc2 (calling card app) as an authentication system and I don't know if that is what is
2007 Apr 14
5
SAMBA Problem - Users take ownership
Hi, I have a problem with my Samba/WinBIND implementation. In folders shared by multiple people the last one to access and modify a file takes ownership of the file and changes the permissions so other users cannot make changes to the same file: [root@atlas PLANNING RECORDS]# cd REGIONAL\ 1\ AIRLINE\ DOCS/ [root@atlas REGIONAL 1 AIRLINE DOCS]# ls -al total 1232 drwxrws---+ 8 root
2007 Nov 08
3
options_from_collection_for_select
I need to add a blank or dashed field to the options_from_collection_for_select helper but can''t seem to get it to work. Tried this, but with no effect: <%= options_from_collection_for_select @airlines, ''id'', ''name''], {:include_blank=>true} %> Anyone know how to do this? Thanks, -S -- Posted via http://www.ruby-forum.com/.
2010 Jan 18
5
errors appears in my time Series regression fomula
Dear all, I found really difficult with the time series questions, please help me with this monthly airline series! I have run the following r code, and there is an error appeared at the end. The data files was enclosed in the email. I'm sorry the errors message appeared in chinese, but it says "plot.xy(xy.coords(x, y), type = type, ...) : errors in argument has more than 3
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives demonstrations on what can be done using R? I downloadedR Langauage definition and An introduction to R but haven't found them overly useful. I'd really like to be able to follow some tutorials using a dataset or many datasets. The datasets I have available on R are Data sets in package 'datasets':
2012 Nov 25
1
Error : Error in if (antipodal(p1, p2))
Hey, I'm trying to build something like this http://flowingdata.com/2011/05/11/how-to-map-connections-with-great-circles/ but with my own data in csv files. The code runs well if I use the same csv files as the author, but with mine , this is what I get *Code* library(maps) library(geosphere) map("world") xlim <- c(-180.00, 180.00) ylim <- c(-90.00, 90.00)
2003 Jan 21
2
WARNING : no network interfaces found.
i get the following error WARNING : no network interfaces found. when i run smbclient or nmblookup etc. the following is the settings in my computer. workgroup = TRIDENTMUMBAI security = domain password server = 10.160.128.152 netbios name = smbsys interfaces = 192.168.1.225 encrypt passwords = yes -- Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy the
2010 Feb 01
3
merging data frames gives all NAs
Dear kind R helpers, I have a vector of runway names in rwy ("31R", "31L",... the number is user selectable) arrgnd is a data frame with data for all flights and all runways, with a Runway column. I am trying to subset arrgnd into a dat frame for each selected runway, and then combine them back together using the following code: for (j in 1:nr) { # nr = number of