Displaying 20 results from an estimated 30000 matches similar to: "Where is my file?"
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ...
Why doesn''t rescue_from ActionController::RoutingError work witht he
code from
http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
2010 Jun 08
8
rails, ajax, json, and script
Could someone please demonstrate the code to send both json (or xml) AND
javascript (to be executed) in a single Ajax request?
Is this even possible?
--
Posted via http://www.ruby-forum.com/.
--
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
2009 Dec 23
8
Where did this value in a form come from?
Newb here.
I have a form and a value that is being displayed ... and I have no idea
where the value came from.
I have done a
<%= debugger; '''' %>
in the form and, indeed, the debugger stops at the statement.
I have tried to trace through the code to see where the value came from
... and I gave up.
So ... what in Rails initializes the fields of a form?
--
Posted via
2006 May 05
1
RadRails and path issues
I have been using RadRails as my editor for Ruby development. Overall
I''m pretty happy with it. I''m experiencing a couple of path problems
though when using it.
Inside of my project within RadRails I will have a directory structure
that looks similar to this.
+MyProject
++src
+++src_sub_directories
++props
++output
..misc files
RadRails then treats all files within the src
2008 Oct 13
2
rsync error: Error in socket IO(code 10) at clientserver.c(122)
Hi,
I am using cwrsync ver 2.1.5 over SSH to connect to
myproj@sourceforge.net and facing
some problems and not sure how to go about it. Below is the full text of the
result when I run the batch file. Was wondering if anyone has seen any
similar issue. Any thoughts/help is much appreciated.
------------------------------------------------
Tunnel: ssh
Command to run: "C:\Program
2010 Feb 05
7
I'm having trouble with Routes II
I have narrowed my problem in a prior topic (I''m having trouble with
Routes) to the fact that I get the problem, below only when I reload my
page. Clicking on links to go to the pages I want ... I seem not to
have problems.
Given that it seems to be a reload that is generating an "/undefined"
path somewhere ... can anyone suggest what I should be looking for to
fix the
2010 Jul 15
1
Proper use of grep
I just need to confirm something with pattern matching folks. I have a factor with the following levels in a very large data set:
> levels(all$Classical.Statistic)
[1] "" "AB;ABD" "CollapsedSteps" "CR_P" "CR_Prop;CR_P;AB"
[6] "NMK"
2010 Feb 19
3
Hooking validates
I want to hook the validation routines so that I can flag html labels
and change their color to better indicate which fields need to be
corrected in a form.
Is there a way to do this conveniently and/or conventionally?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 Dec 01
6
Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError
I just installed my RoR application on my ISP''s server.
This is a Cpanel environment and it creates a .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xyz.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.xyz.com$
RewriteRule ^(.*)$ "http\:\/\/127\.0\.0\.1\:12001\/$1" [P,L]
in a public_html directory. (I changed my domain name in the text above
to xyz because we are
2011 Jan 02
7
Rails, .swf, .flv
I have the following HAML code
ul{ ''id'' => tutorials_ul }
%li
%a{''href'' => ''/videos/create-command-001.swf''}
''Edition swf''
%li
%a{''href'' => ''/videos/create-command-001.flv''}
''Edition flv''
When the user clicks on
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following:
- xyz = someFuncThatReturnsString(''xyz'')
and elsewhere
%div{''id'' => xyz}
The above lines work fine.
- - -
Attempting to keep things DRY (Don''t repeat yourself) I want to do
something like
- eval(otherFuncThatReturnsString(''xyz''))
where
2011 Feb 10
8
rvm install 1.8.7 prompts "There has been an error while running make. Halting the installation."
I want to work with both Rails 2 and Rails 3 projects.
I have RVM installed.
When I upgraded to Rails 3, Installed RVM via terminal:
bash < <( curl http://rvm.beginrescueend.com/releases/ … ll-latest)
version=$(curl http://rvm.beginrescueend.com/releases/ … sion.txt);
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src/ && curl -O
http://rvm.beginrescueend.com/releases/ … on}.tar.gz |
2010 Feb 11
4
recursive expansition of <% ... %>
In a controller I have
@message = "The size is <% @a.size %>."
In the view I have
<%= @message %>
which, sadly, produces
The size is <% @a.size %>.
rather than, say,
The size is 4.
If I try
<%= <%= @ message %> %>
I get a syntax error.
Is there a solution?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
2010 Feb 08
3
Double render/redirect philosophy
Ok, I think I understand why RoR will flag an attempt double render in
an action.
What I don''t understand is the philosophy of render and redirect_to.
Specifically, why isn''t a return implicit in both those methods?
Or, I guess, more to the point ... what are the advantages of writing
code in the action after a render/redirect_to?
--
Posted via http://www.ruby-forum.com/.
--
2010 Feb 18
5
Converting hash to option string
Is there a good way to programmatically convert
{:a=>''b'', :c=>''d''}
to
''a=b c=d''
?
Rails seems to do this knid of thing "all over the place".
I see reverse_merge and similar functions ... but I wonder if this is
canned behavior somewhere.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
2010 Mar 06
7
form_for, submit, and parameters disappearing
Consider the following:
--
Posted via http://www.ruby-forum.com/.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2009 Oct 21
3
Rails generator fails to generate all files
Hi
Ive lost all idea of why this can happen
I normally use rails to generate a new project
rails myproject -d mysql
inside the myproject directory normally there would be a file called
application.html.erb, with in the public directory a file called
style.css
Now I dont get anything at all, they are missing
All my previous projects have those files,
using 2.3.4 Ruby 1.9.1 Windows
Any
2010 Jul 07
4
Haml ... ending a line with a | (vertical bar)
I don''t know if HAML questions are appropriate here ... but here goes.
How does on end line to be rendered with a vertical bar (|) ?
The vertical bar is a line continuation, aparently.
Doing \| cause the vertical bar to be emitted ... as well as the
backslash.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
2008 Nov 25
1
[LLVMdev] AddReadAttrs vs. TargetMachine?
Hi,
I want to invoke the AddReadAttrs pass with my software backend
(derived from TargetMachine like CBackend).
CBackend uses addPassesToEmitWholeFile-method for invoking several
passes. I tried to use the same method, but it failed on runtime.
Running llc with my backend produces (mac os x 10.5 and llvm 2.4):
dyld: lazy symbol binding failed: Symbol not found:
2006 May 09
3
remove Punctuation characters
Hi,
I want to remove all punctuation characters in a string. I was trying it use
a regular expressions but it doesn't work.
Here is a sample os what i want:
str <- 'ABD - remove de punct, and dot characters.'
str <- gsub('[:punct:]','',str)
str
"'ABD remove de punct and dot characters"
is there any function that do this kind of thing?
Thanks to