Displaying 20 results from an estimated 6000 matches similar to: "Ruby/Rails newb here. I need help getting started."
2006 May 05
2
newbie ruby string match question
All,
I want to know in the Application.rb controller if I''m on the login screen.
When I''m on the page I care about the controller variable is
"#<ActiveRbac::UserController:0x408b3d6c>"
So I want something like:
if controller contains ActiveRbac::UserController
What is the right syntax for the above?
Thanks
Greg
--
Greg Freemyer
The Norcross Group
Forensics
2004 Nov 07
3
dispatch.cgi not found error
I''m following along on the 10 minute tutorial. Accessing blog at
http://www.ampede.com/blog/ works fine. I then created Weblog using the
script/new_controller generator. When I try to access
http://www.ampede.com/blog/weblog/, I get:
-------------------------------------------------------------
Not Found
The requested URL /dispatch.cgi was not found on this server.
2006 Nov 24
0
[LLVMdev] LLVM Newb: Getting started
Hello, Wolfgang.
> * How can I define parts of the ABI that cover calling conventions?
You should write some parts of codegen, which will translate specific
CC'ed code to the target assembler. In general, you have to write 2
routines:
1. Lowering of formal arguments (when function call is performed,
function should "see" supplied arguments with specific CC)
2. Lowering of call
2006 Nov 25
0
[LLVMdev] LLVM Newb: Getting started
Hello, Wolfgang.
> I did not manage to make llvm-gcc create __main.
Code for static construction & destruction is highly platform dependent.
Usually it's placed in crt.o binary, which is compiled during main gcc
build cycle.
For example, for Linux we should only output some code in specialy named
sections and this code will automatically called by system loader. As
opposite, for
2006 Nov 25
3
[LLVMdev] LLVM Newb: Getting started
Am Freitag, 24. November 2006 03:00 schrieb Reid Spencer:
> If you're making your own front end, you probably won't need it :)
Well, I wanted to play around with it, so see, how my older programs
perform with it.
So far I managed to get some programs running by folowing scheme:
for src in $infiles; do
llvm-gcc -o $src.bc -c $src ;
opt -f -o $src.bc.opt $src.bc ;
llc -f $src.bc.opt
2006 Nov 24
0
[LLVMdev] LLVM Newb: Getting started
Hi Wolfgang,
On Thu, 2006-11-23 at 19:47 +0100, Wolfgang Draxinger wrote:
> A few days ago Craig Black made the suggestion in the D newsgroup,
> that someone creates a D <http://www.digitalmars.com/d/index.html>
> frontend for LLVM. Never having heard of LLVM in the past, I
> immediately got captured by its design when I've read the
> documentation. I was always
2006 Mar 14
3
Check whether externam URL is valid?
Hey,
I have users entering URLs into my app, is there anyway in which I can
check to see if the URLs actually point to something before saving the
user input? Maybe a kind of ''ping''-action that returns true on success?
(btw: does anyone of a tentative release date for Rails1.1? I''ve been
slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2006 Apr 06
3
Rails 1.1.1: Fixing a slew of minors (but you must still freeze Typo)
Rails 1.1 was a big upgrade with a lot of new features and we''ve been
working hard since its release to polish off the kinks revealed after
it was deployed to the masses. Rails 1.1.1 contains fixes for things
like Prototype memory leaks in IE 6, Oracle adapter runnings, and a
number of compatibility tweaks to make most older applications work.
This release still doesn''t work
2006 Jun 28
2
respond_to and Accept headers
After reading:
<http://www.loudthinking.com/arc/000572.html>
I''m trying to experiment with respond_to in order to not repeat myself
and create atom feeds out of a "browse" view.
In application controller I created a before filter that checks for the
extension of the current url and changes the accept header:
[code]
def check_headers
@headers["Accept"]
2006 Nov 23
3
[LLVMdev] LLVM Newb: Getting started
A few days ago Craig Black made the suggestion in the D newsgroup,
that someone creates a D <http://www.digitalmars.com/d/index.html>
frontend for LLVM. Never having heard of LLVM in the past, I
immediately got captured by its design when I've read the
documentation. I was always scared by GCC - a great piece of
software, but horribly bad documented, and in it's own way not very
2008 May 07
1
uninitialized constant HelloadminController::HelloApi
I have built up a simple allication for web service interaction. But the
following error message occured:
uninitialized constant HelloadminController::HelloApi
service api
class HelloApi < ActionWebService::API::Base
api_method :getMsg, :expects => [:name=>:string], :returns =>
[:string]
end
service controller
class HelloController < ApplicationController
2006 Aug 10
0
DHH''s Post on Ruby Talk -- Rails 1.1.6: Stronger fix, backports, and full disclosure
The cat is out of the bag, so here''s the full disclosure edition of
the current security vulnerability. With Rails 1.1.0 through 1.1.5
(minus the short-lived 1.1.3), you can trigger the evaluation of Ruby
code through the URL because of a bug in the routing code of Rails.
This means that you can essentially take down a Rails process by
starting something like /script/profiler, as the code
2005 Apr 19
3
Rails 0.12.1: No major update without a bit of pain
There''s nothing like pushing a new major update in order to find bugs
in the code when its exposed to a couple of hundred working
applications. Thankfully the fixes were almost as swift as the reports.
In any case, you''ll _definitely_ want to upgrade to 0.12.1 right away.
There''s a good handful of fixes for both Action Pack and Active Record
(mostly concerning the
2009 Jul 01
1
Newb question - CHM files - Best method to view
Please excuse my first couple of probably quite a few newb questions.
Are there still probs with viewing chm files?
If I browse to the chm file and just launch it seems fine until I try search for a subject. I search, find what I'm looking for, click it and the help file closes.
If I use wine hh / winepath windows path it launches but if I click search I can't try the search, it's
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error...
app/controllers/info_controller.rb:9: syntax error
this is what is inside of info_controller,
class InfoController < ApplicationController
def who_bought
@product = Product.find(params[:id])
@orders = @product.orders
respond_to do |accepts|
accepts.html
accepts.xml
end
end
if someone could please help me...
-/ James
--
2010 Jan 26
0
newb question: chron and hist()
Hi all, I'm just getting started in R so bear with my newbness.
I am trying to create a very simple histogram of logins by time, with data
coming in from a MYSQL query.
the raw data looks like this:
"id" "user_id" "experience_given" "created_at" "ip_aton"
"1" XXXXXXX 2445626 0 "2010-01-21 00:00:01" 1123632036
"2"
2006 Jan 23
1
Problems with Rails 1.0 on Ruby 1.8.4?
I think I recall reading that there were some incompatibilities,
but that was a while back. What''s the current situation?
-r
--
Technical editing and writing, programming, and web development:
http://www.cfcl.com/rdm/resume
Contact information: rdm@cfcl.com, +1 650-873-7841
2006 Jan 24
2
Ruby on Rails using XML and XSLT
Hello,
I''m building an ruby on rails application right now and i get an XML
document from a specific url.
Is it in rails possible to transform the XML document with an XSLT
document?
Thanks in advance
Daan
--
Posted via http://www.ruby-forum.com/.
2005 May 18
0
Integrating Asterisk into our Legacy PBX <-- Newb (correction)
Correction:
The hardware is a Wildcard T100P (not a TE110P)
Thanks!
> -----Original Message-----
> From: Geoff Manning [mailto:gmanning@zoom.com]
> Sent: Wednesday, May 18, 2005 9:07 AM
> To: Asterisk Users (E-mail)
> Subject: [Asterisk-Users] Integrating Asterisk into our Legacy PBX
> <--Newb
>
>
> I have been successful in setting up asterisk and making
>
2007 Dec 03
1
Subject: Newb Question
Hi,
Use orecx, voip call recording and monitoring.
www.orecx.com
Thanks & Regards,
Vidura Senadeera,
Sri Lanka.
Tel - +94114520001
Mobile - +94777766596
yahoo/skype Ids - vidurased
> ------------------------------
>
> Message: 17
> Date: Fri, 30 Nov 2007 08:58:41 +0530
> From: ram <talk2ram at gmail.com>
> Subject: Re: [asterisk-users] Newb Question
> To: