search for: restaurant

Displaying 20 results from an estimated 186 matches for "restaurant".

2006 Mar 14
3
Help doing find - look for nonempty habtm
I''ve got a Cuisine and a Restaurant model, with a habtm. One thing I want to do is find all the cuisines that have at least one restaurant associated with them. Right now I''m using the following SQL query: SELECT DISTINCT(cuisines.*) FROM cuisines, restaurants, cuisines_restaurants WHERE cuisines.id = cuisines_restaurants...
2020 May 30
3
Cargar archivo .RData desde OneDrive, Google Drive o Dropbox
Hola, gracias por la respuesta. Yo también puedo descargar el fichero pero no lo carga de forma correcta: > drive_download(" https://drive.google.com/file/d/1iN7rT-W8WoXsdBpKzxcatFx7nGPWNkuz/view?usp=sharing ", + overwrite = TRUE, verbose = TRUE) File downloaded: * restaurant.RData Saved locally as: * restaurant.RData > restaurant <- load("restaurant.RData") > summary(restaurant) Length Class Mode 1 character character El sáb., 30 de may. de 2020 a la(s) 17:31, Carlos Ortega ( cof en qualityexcellence.es) escribió: > Hola, &...
2020 May 30
3
Cargar archivo .RData desde OneDrive, Google Drive o Dropbox
...ive, Google Drive o Dropbox. Con OneDrive he intentado lo siguiente: temp <- tempfile() download.file(" https://alumnosuatedu-my.sharepoint.com/:u:/g/personal/rivaldez_uat_edu_mx/ESNKsBZE5rhMp4_shdbavXEBz4mUuIaeKWIXlMMlpyqyUA?e=NfZupt ", temp, method = "curl") restaurant <- load(temp) y obtengo lo siguiente: > restaurant <- load(temp) Error in load(temp) : número mágico de archivo de restauración inválido (el archivo puede estar dañado) -- ningún dato recargado Además: Warning message: file ?file2010767f7bdc? has magic number '<html' Use o...
2013 May 09
0
Replace rows in dataframe based on values in other columns
Hi, dat1<- read.table(text=" Restaurant owner purchase_date ??????????? 23 Chuck 3/4/2011 ??????????? 23 Chuck 3/4/2011 ??????????? 23 Chuck 3/4/2011 ??????????? 23 Chuck 3/4/2011 ??????????? 23 Bob??????? 1/1/2013 ??????????? 23 Bob??????? 1/1/2013 ??????????? 23 Bob???????? 1/1/2013 ??????????? 15 Hazel 4/11/2010 ??????????? 15 Hazel 4...
2006 Jul 31
9
Multiple Pagination
I have the following: def index begin @restaurant_pages, @restaurants = paginate :restaurants, :order => (params[ :sort ] || "name"), :per_page => 2 @cuisines = Cuisine.find_all rescue redirect_to :action => :index...
2006 Jul 09
1
Quick Question
I have this method in a controller def sort_by_cuisine #@restaurants = Restaurant.find(:all, :conditions => ["cuisine_id = :id", params], :order => params[:sort]) @cuisines = Cuisine.find_all end And I want to put the bulk of it in the model, but still call it from the controller. How can I do this? I''m fairly new to Ruby on Rail...
2006 Aug 22
0
Re: Problem with find condition and habtm relationship.
...you want a "for all" operator and sql doesn''t have one. Instead, you have to think of the query in terms of the logically equivalent "not exists not". Effectively, a proposition is true for all x if you can''t find a counter-example in x. In your case, a restaurant has all of the asked- for features if you can''t find one that it doesn''t have. It''s incredibly annoying to try to think of things this way, but it''s what SQL can do. Let''s assume, to save some typing, your tables are called rests, feats and rests...
2005 Dec 16
3
Adding methods to models
...the consensus is for the "correct" approach in Rails/MVC. I have a standard security model where a User can have many Roles. There is a User model, a Role model, and in the db, a linking table, etc. Each role has a name as well as a category (say, name="waiter", category="restaurant worker", for example). I can check to see of a user has a particular role by doing something along the lines of @session[:user].roles.include?(Role.find_by_category("restaurant worker")) There is probably a shorter way of doing this, but the point is this: Would it be "correc...
2006 May 04
9
Help: wrong number of arguments (0 for 1)
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works fine, gives me a list of restaurants. If I click on edit though I get this: Showing usr/lo...
2010 Jul 15
2
Search and extract string function
...hat I want to extract as reference points. For example, say I'm working with data entries that looks like this: Drink=Coffee:Location=Office:Time=Morning:Market=Flat Drink=Water:Location=Office:Time=Afternoon:Market=Up Drink=Water:Location=Gym:Time=Evening:Market=Closed Drink=Wine:Location=Restaurant:Time=LateEvening:Market=Closed ... For my function, I'd like to find what's located between "Location=", and ":Time=" in every instance, and extract it, to return something like "Office, Office, Gym, Restaurant". In a previous discussion I found (http://tol...
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works fine, gives me a list of restaurants. If I click on edit though I get this: Showing usr/...
2007 Aug 20
1
Application for Home Delivery Restaurants
Hello All We have developed an application for Home Delivery Restaurants using Asterisk, Java (JSP/ JSF) and MySQL. Here is listing of its features. If someone is interested then we can provide him more details. - POP up window with caller data containing his/her name, address and transactions history. - In case of new customer, Pop up window with blank form...
2010 Oct 06
1
2 way intercom recommendation for restaurant kitchens
...having to walk back and forth. The speaker has to be loud but clear, not distorted. Sometimes the kitchens can be noisy. It needs to be easy to use. It needs to be easy to clean. It would be nice if it used POE. Eventually I would like the kitchens to be able to dial different parts of the restaurant when I get the whole place switched to VOIP, but for now I need something only in the two kitchens. I like the idea of a regular phone with a kick'n speakerphone, but I'm open to alternatives. I say 'regular phone' with unease, but I mean something with a normal dialpad, extra...
2006 Mar 22
1
How do you clean up this cryptic code?
So, I''m coding my school project in Rails. There are two models, User and Restaurants. I noticed that in Restaurants, when you use the belongs_to method, you could specify the condition of the associated table. There are a few types of users, in the user_type column of the users table - owners is type 1, users are type 2. So in my haste to hand in enough code, in the Restaurant...
2011 Oct 23
2
[LLVMdev] Adding sub-commands and option classes to the command line library.
...t; static cl:subcommand<MainFunctionT> Command( "command" cl::desc("Driver commands"), cl::values( "eat", main_eat, "Eat all the food", "order", main_order, "Order the food", 0)); static cl::opt<std::string> Restaurant("restaurant" cl::desc("The name of the restaurant to use")); int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, "Restaurant driver!\n"); // Shared setup code... return Command(argc - 1, argv + 1); } ======== eat.cpp ==================...
2005 Oct 28
1
SF Beer & Pizza SIG - review and forecast
...eman (no hacker he!) who was on the prowl for Rubyists to hire. Beer and Pizza (among other things) were consumed, Ruby (among other things) was discussed, and everyone appeared to have a good time. The upcoming SIG will, as announced previously, be held just up the street at the Delancey Street Restaurant. Note that it will be on a _Tuesday_ this month! Here are the details: Beer and T{ofu,urkey} SIG: RSVP: RSVPs are required for this one. Send me the number of folks in your party. If you are not on my list, you may end up eating alone!...
2011 Jan 05
3
VoIP PoE phones for restaurant (kitchen)
On Tue, 4 Jan 2011, Andy Graybeal wrote: >> The Polycom 321 has not been EOL'd and supports VLAN. It is, however, >> lacking a 2nd ethernet port if you were to go that route. >> >> -M >> > Thanks for the response Mark. I see the 331 has two ports and the same > features as the 321. > > I'm wondering what phone would be best being used as an
2006 May 01
0
PostGIS and MySql Spatial Extensions in Rails
...on,etc...) to ActiveRecord. Currently the only supported databases are MySql and PostGIS. With this release, geometric columns should behave like columns of any other basic types in all areas: migration, data access, dumping in ruby schema mode... For example, here is how you would define a "restaurants" table in a migration, along with a spatial index on the geometric column: ActiveRecord::Schema.define do create_table "restaurants", :force => true do |t| t.column "data", :string t.column "geom", :point, :null=>false, :srid => 123 end...
2011 Jan 03
1
VoIP PoE phones for restaurant
Greetings, I mailed the list regarding an intercom system some months ago and we came to the conclusion that I should purchase a Polycom 501 phone. I'm now considering the purchase for this year, and I'm now wondering between the Polycom 501 and the 320 for the intercom. I don't need the spare ethernet on the phone because I would like to have my voice network separate from my
2009 Oct 15
10
AJAX - how to have multiple select form sets implemented?
...ct a category. Upon selecting a category from a drop down box, a new sub categories drop down box will be created (hence an AJAX call). Got this implemented and it''s ok. Now, let''s assume that a given blog can have multiple categories (and subcategories). For example, a blog on a restaurant review can belong to the following categories & subcategories: 1) "food" -> "fine dining" 2) "people" -> "lifestyle" 3) "travelling" -> "restaurants" After selecting a set of category and sub category, there will be a link e...