similar to: Adding classes without script\generate

Displaying 20 results from an estimated 3000 matches similar to: "Adding classes without script\generate"

2006 May 01
7
where should I put my hand-coded classes
I have a class that is hand-coded (not generated using generator). Is there a preferred location for the file. app/components ? does it matter? Thanks, -- Posted via http://www.ruby-forum.com/.
2006 May 01
3
Using Classes in Rails
I am a beginner so please excuse me, if i am doing something totally wrong. I have created a class using "wsdl2ruby.rb" and here is what it looks like: class ServiceSoap < ::SOAP::RPC::Driver DefaultEndpointUrl = "http://balrog/services/SearchWorker/service.asmx" MappingRegistry = ::SOAP::Mapping::Registry.new Methods = [ ... -- Posted via
2006 May 02
4
passing data from controller to rjs and then to partial
Hello Experts, I am fetching data in my controller from a web service def search response = @@api.DoSearch() end and in my .rjs template, I am doing page.replace_html ''fields_chooser'', :partial => ''fields_chooser'' ,:locals =>{:response => response} page.visual_effect(:Appear, ''fields_chooser'') and in _fields_chooser.rhtml, I
2006 Apr 22
3
Ajax call not being made on a Sortable list
Hi, I am creating a sortable list using this code: <%= sortable_element("fields_list", :url => { :action => "order", :id => @fields_list }) %> it creates a sortable and I can move elements up and down, but it is not making any call to the "order" method. I do not see any log activity in the development log nor do I see any errors there. The
2006 May 02
0
RE: Rails Digest, Vol 20, Issue 39
All assumptions aside, "rectest" and "salt" are usernames not databases/schemas according to the pasted config. If they were in fact different databases/schemas, this problem could never have happened. While different database brands may have tricks for ways to handle users and what they perceive as a database/schema, the fact remains that if 2 literally separate databases
2006 Apr 21
2
Passing Variables to a sub template
Hi, I must be missing something very basic here. I have a parent template and I am calling a sub template like... <%= render( :partial => "window_title_bar", {"heading" => "Product Details"}) %> and in the sub template (_window_title_bar.rhtml), i am doing Heading: <%= heading %> but I am getting syntax error in the master template at line
2006 Apr 11
5
[OT] RailsConf Tickets ?
Just in case -- if anybody has got a spare ticket for RailsConf, i''d be very happy to buy it... I live in Chicago, so i can do this on very short notice as well, should anybody not be able to attend... :) Otherwise - this being Chicago - no question there''ll be scalpers... :) Thanks, Sebastian
2005 Nov 09
1
Element.removeClassName(..) - bug or incorrect usage?
Hi, I have just started using prototype.js and scriptaculous.js in one of my projects. These libraries are awesome and they let me do so much more, so easily. At some point in my web interface, I have an element with multiple classes, out of which one class needs to be removed. I am using Element.removeClassName(element, "classname to remove"); to achieve this. This call does remove
2009 Sep 24
1
R v2.10.0: Doc clarification for cross references and where are we heading?
Hi, in 'Writing R Extensions" of R v2.10.0, under Section 'Cross-references' (2009-09-07) it says: 1. "The markup \link{foo} (usually in the combination \code{\link{foo}}) produces a hyperlink to the help for foo. Here foo is a topic, that is the argument of \alias markup in another Rd file (possibly in another package)." 2. "You can specify a link to a different
2005 Sep 25
2
Preventing/allowing exceptions to occur in Element.add/remove ClassName
Hello everyone ! Thomas asked me to discuss here the behavior of Element.addClassName, as relating to ticker #2232 [1]. In HEAD, if the element passed-in to Element.addClassName does not exist, an exception is thrown, and script execution stops there. I believe this is inconsistent with other functions: Object.extend(Element, { hasClassName: function(element, className) { element =
2006 Jul 25
1
Feeling silly
I don''t know why, but I am drawing a complete blank on something that should be easy. I''ve been searching, perhaps using wrong terms, and still not coming up with anything. Here''s what I''m trying to do: <div class="button" onMouseOver=''this.className="button_hover"''; onMouseOut
2024 Mar 11
1
R6 "classname" and generator name
I'm writing some code that does a bit of introspection of R6 classes and am wondering about the "classname" parameter. Its the first parameter to the "R6Class" class generator generator function, and the few examples I've looked at on CRAN set it the same as the name of the generator function, for example, from the docs: Queue <- R6Class("Queue", .....)
2006 May 02
3
web services on the client side
i am reading through chapter 20 of the agile web development book and trying to figure out how to use web services. i set up two different rails apps. one as the server and one as the client. setting up the server seems to work fine. but when i use the example at the end of the chapter to set up a client, i get the following error when i open the page: Missing API definition file in
2008 Mar 07
6
creating a model registry
Hi all, This is a problem I''ve approached so many times and always worked around, that now I want to solve it once and for all. Say I have something like this: --- class X < ActiveRecord::Base acts_as_wacky end module Wackinator class ControlAllWackos @@wackos = [] def self.kill_wackos @@wackos.each(&:kill) end end def acts_as_wacky
2007 Jan 03
3
Self-referential habtm with condition is broken
Here''s a simplistic model class. class Person < ActiveRecord::Base has_and_belongs_to_many :relatives, :class_name => ''Person'', :join_table => ''relatives'', :foreign_key => ''from_id'', :association_foreign_key => ''to_id'' has_and_belongs_to_many :brothers, :class_name =>
2004 Dec 02
1
SJava convert problem
Consider this Java class: class myClass { final public static String[] testString () { return new String[]{"my", "name", "is"} ; } final public static int[] testInt () { return new int[]{5, 10, 15}; } final public static char[] testChar () { return new char[]{'x', 'y', 'z'}; } }
2010 Oct 04
1
S4 class help pages [Sec=Unclassified]
Hi, I am working on producing an R package containing mostly S4 classes and methods. I have generated and filled out all the necessary .Rd files but find that once installed I am unable to access help pages for the classes using the ?package::classname-class syntax that is suggested when using the ?? apropos search. This lists my package classes and the class help pages. Instead, the
2006 Jan 06
3
image replacement (new Effect.*****) problem
Here''s what I''m trying to do. I have two divs, one holds about 20 small images of products and the other holds a single large image of one of the products. I''m trying to use the jazzy "new Effect." way of changing images but I can''t seem to get it too work. My script is replacing the image and then making the element disappear. What
2008 Mar 04
3
remote_form_for does not work with method = :get
It seems that remote_form_for does not work with method = :get since it does not change the prototype call. Is this a bug? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2008 Feb 23
3
Attachment_fu: how to remove images?
I just used attachment_fu for the first time, and it works quite well. I have a user-model, and each of them has_one :image (and the images belongs_to :user). I have a question on this though: how can i remove images? Whenever i set a new image for a user (a user who already has an image), then the table with images gets updated correctly, with the user_id column of the old image set to null, and