» Home » require » Page 1
Problem with require rack/openid in Rails 3 [native require work properly]
by BooTeK in Programming Languages

I install plugin open_id_authentication and have this error:


/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in `require': no such file to load -- rack/openid (LoadError)

when I try to start rails server
Actually, rack-openid installed in my system and i can load it from irb:


irb(m

Alternative to require.paths to edit require search directories programmatically?
by patheems in Development Tools & Services

I'm looking for a way to basically do what manipulating require.paths used to let you do; edit the paths require will search for modules in from within a running program.


The setup (that I can't change, or workaround for various reasons) is that I have a project containing a main JS file within a child directory, which in turn should be able to just require('module'), w


Backbone.js + require.js application: Not returning a module view loaded with require.js
by bmg in Web Design

I have two backbone Views. One is the main view and the other is a view that will be used within the main view. I am making individual modules for my various views. I have the main view being loaded and run fine from the router. Here are my two views:


MAIN VIEW:


define([
'jquery',
'backbone',
'metros/docsMetro'
],
function($

Creating IIS7 web application using PowerShell with Require SSL set to “Require”
by Jason Dockery in Development Tools & Services

I'm creating an IIS web site using PowerShell's New-WebSite cmdlet, and within that a web application using New-WebApplication.


The SSL settings for the web application need to be set to Require SSL; Require as shown below.



For consistency, I would like to do this using only PowerShell cmdlets.


The Require SSL setting is


I don't understand how require.js handles the load paths. Do I need to use require.config every time I define a module?
by James Clarke in Web Design

I am learning about require.js and think I am just missing something. I don't understand how it loads files.


I have my jquery file in a lib directory.


This does not work:


It shows that jquery is being loaded in the chrome network panel. Error is: Uncaught TypeError: undefined is not a function . so it is basically saying that $ is undefined.



Can multiple instances of require (require.js) play nice together
by ugufugu in Web Design

I think I need to support more than one instance of require in a page, and am running into two issues making it happen. I am working on a service which supplies embeddable interactive objects to external client pages. The top design criteria are being easily embeddable, making as few assumptions about the client environment as possible, and playing nicely in the js/css world of the client page.


require file use dirname(__FILE__) or just require filename?
by changke in Programming Languages

I have a file at lib directory in my rails project. like this
a (directory)
a1
a2
a.rb


when I in a.rb require a1.


require 'a/a1'

it will warn me /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- a/a1 (MissingSourceFile)


but use dirname(FILE), it work.



IIS7 Require SSL with must Require option
by Robert M in Development Tools & Services

I hosted an ASP.NET Web API project in my Windows 7(IIS7) developer machine on HTTPS(443) and SSL Required ticked with Require Option true.


For testing I give its host header value : www.certtest.com, and the same I add in host file of local machine.


Also we have a W2k3 machine where we've configured the CA and obtain test certificates from it.


We import same


require.js require inside a require
by KM. in Web Design

Why do we want to have another require structure inside a require structure?


like


require([mod1,mod2], function(m1, m2){
require([mod3], function(m3){
// and then will use m1 and m2 here as well
})
})

Why can't we just have one require structure? I want to understand the motivation between this setup.


Ruby require 'file' doesn't work but require './file' does. Why?
by Sascha Brossmann in Programming Languages

I have a folder full of ruby files, and when I try and require one file in another that is in the same directory using require 'file' I get a LoadError but when I use require './file' everything works fine. Can somebody explain to me why this happens and if there is any way I can require a file without adding a ./ onto the file?


(P


Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .