Hi all,
Given the following routes.rb file:
# Add Admin section routes
map.namespace :admin do |admin|
admin.resources :admin_users
admin.resources :admin_user_sessions, :as => :sessions
admin.resources :dashboard
# Authentication Elements
admin.login '/login', :controller => 'admin_user_sessions', :action => 'new' ...
I've not found anything that addresses my specific name space question as yet.
I am working on some AudioUnit plug-ins featuring Cocoa based GUIs. The plug-ins use a common library of user interface classes (sliders, buttons etc) which are simply added to each Xcode project.
When I recompile and distribute updates it is pretty much gu...
I'm working on a Rails application. I have a Module called Animals. Inside this Module is a Class with the same name as one of my Models (Dog).
show_animal action:
def show_animal
require 'Animals/Bear.rb' #Works
require 'Animals/Dog.rb' #Fails
end
So the first require definitely works, the seconds fails.
MissingSourceFile (no s...
// JavaScript JSON
var myCode =
{
message : "Hello World",
helloWorld : function()
{
alert(this.message);
}
};
myCode.helloWorld();
The above JavaScript code will alert 'undefined'.
To make it work for real the code would need to look like the following... (note the literal path to myCode.message)
// JavaScript JS...
Hi people!
I am building an administration space in my web application. To do this, I am using namespaces but even if the rake generated routes are ok, when i follow the root of my admin space I get an error:
Routing Error
No route matches "/guru"
My routes.rb :
Baies::Application.routes.draw do |map|
resources :fights
resources...
I have a C# script executor, which execute an arbitary chunk of c#, by wrapping it, and
executing it in its own appdomain. To compile it correctly, I need to know what assemblies
it needs.
Is it the case that I need to extract the namespaces for the script and iterate through
every assembly I can find, to find a match, or is thei...
I have a problem with Visual C++ 2005, where apparently inner classes with the same name but in different outer classes are confused.
The problem occurs for two layers, where each layer has a listener interface as an inner class. B is a listener of A, and has its own listener in a third layer above it (not shown).
The structure of the ...
Hi
I have a very simple WPF project comprising a Window and Usercontrol. I'm very much in a learning phase. It works fine when I run it. However, I am unable to see the form in design time. The problem, I believe is something to do with namespaces, but I don't understand where. It may well be a simple error
Main Window XML
<Window
...
Hi!
I have some functions that can be grouped together, but don't belong to some object / entity and therefore can't be treated as methods.
So, basically in this situation I would create a new namespace and put the definitions in a header file, the implementation in cpp file. Also (if needed) I would create an anonymous namespace in t...
Since I need to add an operator& for the std::tr1::array<bool, N> I wrote the following lines
template<std::size_t N>
std::tr1::array<bool, N>
operator& (const std::tr1::array<bool, N>& a,
const std::tr1::array<bool, N>& b)
{
std::tr1::array<bool, N> result;
std::transform(a.begin(), a.end(), b.begin(), result.begin(),
...
Hi,
I hope you can help...
Let's assume I have following XML:
<data>
<token>
<sessionId>12345</sessionId>
<userId>john</userId>
<moreInfo>
<bla> .....
</bla>
</moreInfo>
</token>
</data>
And I need this to become
<login:data xmlns:login="http://my.ns.uri">
<login:to...
Hi,
Looking over some older code, I've run into a strange namespace error.
Let's say I have two projects, HelperProject and WebProject. The full namespace of each - as given in application properties - is myEmployer.HelperProject and myEmployer.Web.WebProject.
The pages in the web project are full of statements that use classes from t...
Hi all
I am developing a library and a would like to provide my users a public interface separate from the real implementatino that is hidden in a namespace. This way, I could change only the class HiddenQueue without changing myQueue that will be exposed to users only.
If I put the C++ code of HiddenQueue in the myQueue.cpp file the ...
I'm using the Spring WS version 1.5.8. My response looks like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
...
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
However, my client (whom I integrate with) requires that I will add more namespace declera...
How can i register a namespace in app.config so that it will become globally accessible.
...
Is there any way to define a constant for an entire namespace, rather than just within a class? For example:
namespace MyNamespace
{
public const string MY_CONST = "Test";
static class Program
{
}
}
Gives a compile error as follows:
Expected class, delegate, enum, interface, or struct
...
I have a document created in a constructor, and during execution I'm filling
it in with fragments generated from Custom Business Objects.
When I'm outputting the fragments, I need to include namespace fragments, but
I'd like to avoid adding the namespace url to each fragment, since it's defined in the root.
Any thoughts?
_doc = new XD...
I'm getting the error:
'Namespace.A' does not contain a definition for 'MyObjectInterface' and no extension method 'MyObjectInterface' accepting a first argument of type ...
I've looked at this and this and neither seems to apply.
The code looks like:
public abstract class Base
{
public IObject MyObjectInterface { get; set; }...
I am trying to do xsl transformation in javascript in firefox 3.5. The transformed value has something like this:
<span xmlns="http://www.w3.org/1999/xhtml/">...</span>
How can I ensure that the xmlns isn't set here? This happens only in Firefox and not IE.
...
I have a ruby view that has this namespace: ActionView::Base.new but i want to add a new method to be available to this ActionView::Base class.
...