similar to: Routes problem

Displaying 20 results from an estimated 11000 matches similar to: "Routes problem"

2011 Sep 07
4
jquery and ajax query in rails 3
hi people I don''t know much about ajax - jquery. And right now I need to use some functionality with them. In a form (sales model) I have the following code: <div> <%= f.label :product_id, "Product" %> <%= f.collection_select( :product_id, Product.all, :id, :name, options={} ) %> </div> <div> <%= f.label :price,
2006 May 19
2
where can I find a list of all available rake functions for Rails
Hi all, Do you know where can I find a list of all available rake functions for Rails. Many thanks. Yi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060519/45a2ae96/attachment.html
2006 May 18
4
Problems using ''select''
I use :filter action to display form and allow record filtering. It contains form with combo box, submit button and list of record matching value in combo. filter.rb: class Filter attr_accessor :owner def initialize(params) @owner = ''''; if !params[:filter].nil? and params[:filter].has_key?(:owner) @owner = params[:filter][:owner] end end end Controler: @users =
2006 Nov 24
14
CHM Documentation for Rails 1.2.0 - RC1
Since the first release candidate of Rails 1.2.0 was announced yesterday, I decided to update my CHM documentation file for this release. You can find the updated file via my CHM Documentation Project Page [1], or you can download the file directly from here: http://delynnberry.com/assets/2006/11/24/rails-documentation-1-2-0-pre-release.chm. [1] -
2011 Sep 09
0
respond_with and ajax
Suppose I have this controller: class SalesController < ApplicationController respond_to ????? def get_price @price = Product.find(params[:product_id]).price respond_with ????? end end 1) What do I specify for respond_to() so that get_price() will accept ajax requests? 2) What do I specify for respond_with() if all I want to do is return @price? -- Posted via
2006 Oct 13
2
Splitting controller
I''m trying to split controller into several files. I tried extracting methods into separate files and then requiring them in main controller, but this doesn''t seem to work. controllers/reports/sales_reports.rb: class ReportController < ApplicationController def sales end end controllers/reports/purchases_reports.rb: class ReportController < ApplicationController def
2011 May 07
11
changing routes.rb
Hi, I''m a complete beginner and I just have a simple question: How do I change lines in a file like routes.rb? I know the command type (i.e type config\routes.rb) but that just shows it and doesn''t allow me to change anything. Thanks in advance -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby
2003 Jul 09
3
/var error
Hello there, I have some problem with my filesystem. #df -h ... /dev/da0s1e 288M 265M -208.0K 100% /var ... #du -h /var .. 19M /var .. Does anybody has an idea what Im supposed to do? Thank you. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
2008 May 04
5
simple Routing Error
Routing Error No route matches "/user/register" with {:method=>:get} The URL is http://localhost:3000/user/register Here is app/views/user/register.rhtml <h2>Register</h2> <% form_for :user do |form| %> <fieldset> <legend>Enter Your Details</legend> <div class="form_row"> <label
2004 Mar 22
3
how to loop through names ?
Hi I'm sure I'm missing something very straighforward here :-( I have a data set 'sales' as follows: ========================================== # read in the sales data sales<-read.table("sales.dat",header=TRUE); #generate a serial field sales$serial=c(1:24) sales an l ml ne ni total serial 1 43 25 35 51 17 69 1 2 38 18 47 94 3 99 2 ....... 24 58
2003 May 07
2
force group parameter problem
Hello. I'm having some trouble with the force group parameter in the smb.conf file. I'm running samba 2.2.8a on RedHat 9. The smb.conf file has the following entries: [sales] comment = Sales Share path = /sales public = no writable = yes create mask = 0770 directory mask = 0770 force group
2017 Nov 02
2
LDAP Filters as defined for dovecot UserDB and passDB
I have pretty much everything working fine. I have run into one issue with the filters that I am unsure where this a filter is being set. Dovecot 2.2.32 (dfbe293d4) I have setup dovecot-ldap.conf.ext to control my LDAP query's My current layout used filters based on looking at the posixAccount attributes ?user_filter = (&(objectClass=posixAccount)(uid=%u)) If I connect to a a ldap
2012 Sep 06
2
No room for labels in barplot
All, I have: sales <- c(2300,900,155,102,42,10) names(sales) <- c("Christmas","Valentine's Day", "Mother's Day","Father's Day", "Thanksgiving","New Year's Day") barplot(sales,ylim=c(0,2500)) But it doesn't place all of the name labels on the plot. So I tried: sales <-
2012 Mar 20
2
Unique in DataFrame
Hello, I have little doubt, and I do not think that the way I solve the problem is the best way to do it. The following is a small dataset x<-data.frame(city="Barcelona",sales=253639) x<-rbind(x,data.frame(city="Madrid",sales=223455)) x<-rbind(x,data.frame(city="Lisbon",sales=273633)) x<-rbind(x,data.frame(city="Madrid",sales=266535))
2013 May 01
1
Call "stuck" in queue
Asterisk 11.1.0 One queue with strategy=leastrecent. (Full queues.conf below.) Occasionally (several times today), a caller will get "stuck" in the queue - there are operators available to take the call, but the caller stays in the queue for a long time. Any idea what might cause this, or where I can start looking to debug it? I'm going to start digging through the queue log
2017 Nov 03
1
LDAP Filters as defined for dovecot UserDB and passDB
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 3 Nov 2017, Aki Tuomi wrote: > Check your userdb, is it using same config file? some HOWTOs explicitly want you to use two config files, because Dovecot maintains two different connections for passdb and userdb queries, which is faster. So if you have copied the config file, instead of symlinked them, you might have to change two
2011 Nov 24
1
what is wrong with this dataset?
> d = data.frame(gender=rep(c('f','m'), 5), pos=rep(c('worker', 'manager', 'speaker', 'sales', 'investor'), 2), lot1=rnorm(10), lot2=rnorm(10)) > d gender pos lot1 lot2 1 f worker 1.1035316 0.8710510 2 m manager -0.4824027 -0.2595865 3 f speaker 0.8933589 -0.5966119 4 m sales
2018 Jan 31
3
Problems with "predict" function ii
I have realised that I should have used "detach" before attaching another dataframe, but even when I do this it's still giving me lots of lines, rather than just one: My code: m<-runif(1,0,1) m mres<-m*(seq(1,12)) mres ssd<-rexp(1,1) ssd devs<-rep(0,length(mres)) for(i in 1:length(mres)){devs[i]<-rnorm(1,0,ssd)} devs plot(-10,-10,xlim=c(1,24),ylim=c(0,20000))
2014 Sep 14
1
Group
hello How can I give permissions based on the groups SAMBA. ? for example: mkdir -p /fileserver/sales useradd -m sample-u1 smbpasswd -a sample-u1 groupadd sales chgrp -R sales /fileserver/sales Smb.conf; [sales] comment = sales browseable = yes path = /fileserver/sales valid users = @sales force users = @sales force group = @sales write list = @sales writable = Yes readonly = No create mode =
2011 Apr 06
3
Managing public folder ACL files
We have a customer with a large public folder hierarchy. They occasionally make requests to have the public folder ACLs changed; for example: "please give user X access to all public folders" (that's nearly 1700 folders). Worse: "please give user Y access to all sales folders" (there are 1450 sales folders). The problem is that there are (naturally) spaces in the folder