similar to: include once in partials

Displaying 20 results from an estimated 3000 matches similar to: "include once in partials"

2006 Mar 08
5
@params["aKey"] and multiple aKeys in request
Hi, I''ve actually run into an interesting problem and no idea how to fix it. In request parameters i have multiple "url" keys like this: url=www.abc.com&url=cnn.com&url=.... But @params[:url] has only the latest value for "url" key instead of having values kept in array. So what''s next? Is there way out of this issue? Thanks, G?bor PS.: I use rails
2006 Apr 02
16
12 / 16 = 0
Hi, Just thought it was weird that Ruby doesn''t automatically cast ints to floats. Seems so un-rubyish irb(main):006:0> 12/16 => 0 irb(main):007:0> 12.to_f / 16.to_f => 0.75 Jeroen
2006 Feb 21
4
rekord id-je .create után
Hali! Mi a legegyszer?bb m?dja annak, hogy egy pl. note = Notes.create(...) ut?n megkapjam az adott note ActiveRecord id-j?t (primary key)? Sajnos ez ugye 0, mivel frissen lett l?trehozva... ?tlet? G?bor
2005 Oct 24
3
bogus find_all in Rails 0.14.1
I have the following statement cl = ChatEvent.find_all("ev_type <> #{t} and chat_id = #{@params [:chat_id]} order by created_at") which produces the following error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''order by created_at)'' at line 1: SELECT * FROM
2006 Mar 16
1
include once in partial
Hi! I have to include javascript code into my partial but I should do it once. How can I do that? What is the rule of thumb? G?bor
2005 May 16
2
assign value to MySQL timestamp field
With what class type can I assign value to a timestamp field? I tried Time.now and DateTime.now both failed (did nothing).
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups, thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2010 Feb 05
2
number of Excel worksheets
Dear All, I would like to count or list the names of the existing worksheets within an .xls file. Any hints? Thaks, Gabor -- Pozsgai G?bor www.coleoptera.hu www.photogabor.com
2006 Jun 27
2
Render partials in folders
Right now I have partials in a view folder corresponding with my controller. ie: controller: example, view: example/_partial.rhtml and I call it with render :partial => ''partial'' How do I add the partial to another folder and call it? ie: controller: example, view: example/new_folder/_partial.rhtml render :partial => ''new_folder/partial'' # does NOT work
2008 Dec 04
1
Comparing survival curves with "survdiff" "strata" help
ExpeRts, I'm trying to compare three survival curves using the function "survdiff" in the survival package. Following is my code and corresponding error message. > survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata) Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) : No groups to test When I check the "strata" of the variable. I get .
2005 Nov 16
4
What happened to mysql connection?
I''ve been using Rails for more than six months and until today I had no problem with mysql connection. It''s a Mac OS X 10.4 box having rails installed and updated by gem. I use a remote mysql server no local instance installed. Here''s my config: development: adapter: mysql database: hdchat host: 10.0.0.1 username: webuser password: test: adapter:
2007 Feb 09
3
Re: URL issues
hello... On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > I watched the rails screencast on creating a blog in 15 minutes. > I followed along got it working on my home PC and I then uploaded it > to my web host. So I have, > > /home/<username>/blog > > I had to change some config in the blog app (i.e. production
2018 Jan 29
8
[Bug 104835] New: MMIO read of 00000000 FAULT at 10ac08 [ IBUS ]
https://bugs.freedesktop.org/show_bug.cgi?id=104835 Bug ID: 104835 Summary: MMIO read of 00000000 FAULT at 10ac08 [ IBUS ] Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau
2006 Apr 10
1
LoginEngine 1.0.1
Hi, The LoginEngine has been updated to 1.0.1. Notable changes: * User model now does very basic email validation * All tests now pass on both Rails 1.0 and 1.1 * Many bugs fixed! Please refer to the Engines documentation for how to update. http://www.rails-engines.org/download The subversion URL for the tag is: http://svn.rails-engines.org/login_engine/tags/rel_1.0.1 = v1.0.1 * Added
2009 Aug 24
1
How to generate more triangles in sequences?
Hi everyone, I want to plot some pattern. For example, I have some coding as below, plot(0:11,type="n") polygon(c(6,8,10), c(7,3,5),bor=6) polygon(c(2,4,6), c(5,3,7),bor=6) polygon(c(6,10,8), c(7,9,11),bor=6) polygon(c(2,6,4), c(9,7,11),bor=6) This coding will give me four triangles, but how to generate more triangles in sequences so that not need to mention the coordinate for each
2016 Oct 22
29
[Bug 98386] New: [NVE7] bus: MMIO write of FAULT at [ IBUS ], Pointer to {TDMS, flat panel) table invalid
https://bugs.freedesktop.org/show_bug.cgi?id=98386 Bug ID: 98386 Summary: [NVE7] bus: MMIO write of FAULT at [ IBUS ], Pointer to {TDMS,flat panel) table invalid Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: minor Priority:
2006 Jun 24
3
Staying DRY -- can views share partials?
Let''s say I have a "main" controller/view and a "sub" controller/view. If I have defined a partial in "main" for the site header (_site_header.rhtml) can I share it with "sub" or does "sub" have to duplicate it, use a symbolic link to the file, or convert the cool partial into an ugly helper? It would be nice to have a shared placed
2023 Apr 14
2
Package Caret
This is the error then: error in prettyseq(1:ncol(out)) : could not find function "prettyseq" Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:06: > What happens if you do the following? > > library(caret) > > ?caret::createDataPartition > > i.e. to confirm that caret is loaded, seek help on this function > > > On Fri, Apr
2017 Mar 04
5
can we override "if" in R?
I'm just curious. Why making "if" generic is even more dangerous? Best, Da On Sat, Mar 4, 2017 at 1:22 PM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > `!` is a generic, `if` is not. You can define an `if` that is generic, > but this might be even more dangerous.... > > ? `if` <- function(a, b, c) UseMethod("if") > ? `if.default` <-
2023 Apr 16
2
Package Caret
Many thanks Bert, now is ok, i did not know that "Namensraum" should mean a package Am So., 16. Apr. 2023 um 23:44 Uhr schrieb Bert Gunter < bgunter.4567 at gmail.com>: > So update the vctrs package to the latest version first before loading > R-tools (or the caret package, specifically)? > > -- Bert > > On Sun, Apr 16, 2023 at 1:57?PM G?bor Malomsoki >