similar to: adding (dynamically) new functionallities to a view

Displaying 20 results from an estimated 80000 matches similar to: "adding (dynamically) new functionallities to a view"

2006 Dec 10
2
set specific date with date_select
Hi All I seem to have a problem with date_select methods. I cannot set a default date. I tried the following: <%= date_select( "post", "written_on", :selected => Date.new(2005,3,31), :order => [:day, :month, :year] ) %> But still I get todays date :( Any suggestions what I do wrong here ? Thnx a lot LuCa -- Posted via http://www.ruby-forum.com/.
2008 Jul 21
6
form_for and select ( => f.select)
Hi All I''m trying to combine the from_for and select helpers Right now I have form_for :service, :url => ...... do |f| select("abc", "xyz_id", @my_arr.collect {|item| [ item, "bla" ] }, {:prompt => "opt1"} ) .... end What I want to do is something like .... f.select("abc", "xyz_id", @my_arr.collect {|item|
2008 Aug 20
0
activeresource: self.prefix = .../:id/... (need to set :id?)
Hi All As I mentioned in my title I''m using activeresource and the model I''m using has the following prefix self.prefix = ''/institute/:institute_id/services/:service_id/'' All this is great, however I''m now in a situation where I need to save the model, but it translate the prefix as follows /providers/983783784/services//appointments/234234234 So,
2018 Apr 22
0
How to dynamically add variables to a dataframe
Hi Luca, How about this? # create some dummy data since I don't have your d0 or d1 > n <- 3 > d0 <- data.frame(a=runif(5),b=runif(5)) # here's the suggested code > d1 <- cbind(d0, matrix(0,nrow(d0),n)) > colnames(d1)[1:n + ncol(d0)] <- paste("V",1:n,sep="") HTH, Eric On Sun, Apr 22, 2018 at 11:13 AM, Luca Meyer <lucam1968 at
2018 Apr 22
3
How to dynamically add variables to a dataframe
Hi, I am a bit rusty with R programming and do not seem to find a solution to add a number of variables to my existing dataframe. Basically I need to add n=dim(d1)[1] variables to my d0 dataframe and I would like them to be named V1, V2, V3, ... , V[dim(d1)[1]) When running the following code: for (t in 1:dim(d1)[1]){ d0$V[t] <- 0 } all I get is a V variable populated with zeros... I am
2008 Nov 14
1
Queue App - Set monitoring dynamically
I found this property in queue.conf ; Calls may be recorded using Asterisk's monitor resource ; This can be enabled from within the Queue application, starting recording ; when the call is actually picked up; thus, only successful calls are ; recorded, and you are not recording while people are listening to MOH. ; To enable monitoring, simply specify "monitor-format"; it will be
2008 Oct 20
1
Design decision: Dynamically adding data question.
I need to give users the ability to optionally add metadata to documents. Another way to state this is the fact that users need to add at least 5 categories to a document. Basically what I want to do is dynamically add metadata (or categories) to a document on an ad hoc basis. Here are the options that I have thought of: **Option 1:** Should I do this by dynamically creating new table columns in
2006 Jan 07
2
app no longer runs - MissingSourceFile for any controller
Hello all. I somehow managed to break my rails app running under Apache 2 with fcgi. With any action I try, it throws an exception saying it can''t find the source file. For instance, requesting an action in my welcome_controller results in: MissingSourceFile in <controller not set>#<action not set> No such file to load -- app/controllers/welcome_controller.rb The log
2006 Nov 16
2
dynamically adding static (class) methods to a class
Hello again, I guess this is more of a Ruby question, but here goes anyways... I want to intercept all calls to non existent class methods and then call an existing class method with the non existent name. In code... class MyModel < ActiveRecord::Base def MyModel.method_missing(symbol, *args) MyModel.func(symbol.id2name) end def MyModel.func(func_called) puts "You
2007 Feb 08
0
File locking: is there some kind of timeout I can alter?
Hi, I have a problem, that occurs once a week: when my boss opens some files with read/write access via vpn over a crappy internet connection and his connection gets terminated, some files are still locked read-only after several hours/half a day or more. Only restarting the appropriate smbd daemon helps. Is there an option or anything I can modify, that allows me to improve this situation?
2008 Apr 24
3
Dynamically Naming a Variable
Hello, I would like to dynamically name a variable... for example, in my program, I iterate over a SQL query that gives me ''displayname'', ''phone_office'', and ''phone_mobile'' (in the actual query there are many more columns). For each row in the results, I want to create an array with [0]=''phone_office'' and
2007 Jun 27
1
Active Scaffold controllers created dynamically at runtime?
Does anyone know how to link Rails'' routes into anonymous controller classes created at runtime (defined with their superclass as ActionController::Base)? I''m trying to create a plugin for all of my projects that dynamically creates an active_scaffold controller for each model. It would essentially be like a scaffold_all_models for active_scaffold. I believe the original
2008 Feb 28
2
redirect_to or render
Hey, a newbie here. Can someone please give me a brief explanation whats the difference between the redirect_to method and the render method and when should I use one instead of the other ? thnx alot ! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2004 Jun 16
2
Winbind in ADS forrest hangs when not able to talk to other DCs
Hi There, we have a winbind installation here that is used for squid authentication and group resolving. the winbind server is part of the domain ch.domain.intern. the ads forrest is organized like domain.intern ch.domain.intern at.domain.intern fr.domain.intern and other sites will follow. authentication and group resolving works actually fine, BUT: if the link to at or fr is down winbind
2014 Jul 25
1
[Wishlist] a 'PackageDevelopment' Task View
Hello everybody, as a young/unexperienced R package developer (only a few, mainly for personal use) i was thinking it could be very useful having a "meta" task view for all package-development related packages and/or function. Something like ... Creation - utils::package.skeleton, pkgKitten, Rcpp::Rcpp.package.skeleton Foreign languages interfaces: - Rcpp Documentation - roxygen2
2012 Sep 23
2
Find by id in the view template dynamically
Rails 3.1.3 I have a model ''Airline'', whose STRING column is ''company'' only. Also, another model ''Plan'' has an INTEGER column ''airline_id''. I would like to show the ''company'' name (string) in a template like <% @plans.each do |plan| %> Airline: <%=
2018 Aug 16
0
imapsieve: Change message flags on COPY
What is your configuration (output from `dovecot -n`)? Op 16/08/2018 om 14:01 schreef Leandro Lucarella: > Hello, I'm trying to do a simple thing using imapsieve, I want messages to be marked as read when moved to certain folders (Trash, Archive, Spam). > > All the set up to run the imapsieve script works perfectly, but I'm having trouble to make changes effective. As the RFC
2006 Jan 20
2
what''s the right way to require a file?
I''m having a problem importing a class from another project (not a RoR application). What''s the right way to require such a file? I have a class ModelPathwayObject. It''s in #{RAILS_ROOT}/../lib/model_pathway_object.rb , so I add that path to config.load_paths. In config/environment.rb: Rails::Initializer.run do |config| config.load_paths += %W(
2011 Feb 09
1
Adding labels into lattice's barchart
*** APOLOGIZES FOR THOSE READING THE LIST THROUGH NABBLE THIS WAS ALREADY POSTED THERE BUT NOT FORWARDED TO THE LIST FOR SOME UNKNOWN REASON *** I have a dataset that looks like: $ V1: factor with 4 levels $ V2: factor with 4 levels $ V3: factor with 2 levels $ V4: num (summing up to 100 within V3 levels) $ V5: num (nr of cases for each unique combination of V1*V2*V3 levels) Quite new to
2007 Sep 18
0
How to have multiple independently working controlllers for one view
Hi, i have the following problem - on my web project i will have two areas (components) which will change (submit) independently. However, the two areas will interact with each other, too, when some link is clicked for example . There is a rough picture of my problem at thios address : http://offtype.net/image_965035194627.gif.html . The blue areas are those who work independently form one another