Displaying 20 results from an estimated 3000 matches similar to: "Converting hash to option string"
2011 Dec 23
6
http session nil
hi all,
i am new in ruby on rails,i have one issue regarding the session in ruby
on rails.I am using session , i have following condition in my rhtml
<%if @session[''user''].first_name == "admin"%>
<table width="290" border="0" height="20" align="right"
cellspacing="0"
2011 Dec 16
4
nil object Error
hi all,
i am getting following error ,i can''t figure it out why and from where
it is coming ?
please help me out to resolved this error if anyone knows about this issue.
i am using following env.
O.S:Windows XP
Ruby:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
Rails:Rails 2.3.11
Gem:1.6.2
ActionView::TemplateError (You have a nil object when you didn''t expect
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 Jul 09
8
Repository of sample FXRuby programs?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Repository of sample FXRuby programs?</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
2007 Dec 07
2
[ActiveSupport] Patches needing review: re-organization of #to_query methods, preservation of XML/JSON content-type
Just a quick pointer to some ActiveSupport patches hoping for reviews:
Puts Array#to_query and Object#to_query in the right places in
ActiveSupport - http://dev.rubyonrails.org/ticket/10395
Preserve user-specified content type for XML and JSON rendering
(currently it''s overridden and set to Mime::XML/Mimi::JSON -
http://dev.rubyonrails.org/ticket/10388
Oh and a tiny patch for
2010 May 21
8
Designing An Application (UML, Class Diagrams)
Hi
Is there any freeware anybody would recommend for showing database
models and how they relate to each other? I''m picking up an app
another developer left in a mess and I''m trying to sort it out.
Diagrams would be a great help.
Suggestions?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
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
2008 Dec 22
4
No sound device detected on Fallout 3 Launch?
I get a message from the fallout 3 launcher telling me that "no sound device detected. Fallout 3 cannot run". Funny thing is that I'm listening to the background sound of the launcher so I am indeed getting sound. Any ideas on a cure? There should be a fallout.exe along with the falloutlauncher.exe in the program files that could possibly bypass the launcher, would that work and were
2007 Jul 26
4
populate select box by ajax query with Prototype and IE7
Trying to populate a select box with a value passed in from another
select box works great in Firefox, but using IE nothing happens, no
data is getting returned back. I commented everything out and put
alerts in there and the alerts work in IE but when ajax is getting
used it seems to just die...Is this a bug or what am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You
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
2012 Aug 04
4
Rspec
Hi all i''m trying to learn Rspec testing can anyone suggest me the best
book to learn Rspec with good sample code.
Thanks in advance
--
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,
2012 Sep 01
4
Basic Paypal
Hi all i am following this like for basic paypal
http://railscasts.com/episodes/141-paypal-basics
and i got this error
View:
<%= link_to "Checkout", @cart.paypal_url() %>
undefined method `paypal_url'' for nil:NilClass
despite i have this code in my model called Card
Cart Model:
class Cart < ActiveRecord::Base
def paypal_url(return_url)
values = {
2010 Nov 20
3
Global text search (and replace) on MacVim?
Been trying out Macvim and I think I have covered most of what I used in
other editors except for how to handle global searches and replaces for text
in files (i.e. not looking for file names, but search and replace text
within all files below a specific directory). Can anyone who uses MacVim
tell me what they use for such tasks? I have been poking around and see
:grep as the main method, although
2010 Jul 28
6
FXTextField.connect(SEL_CHANGED)
When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised.
The text is changed on the screen.
How do I detect that the text has been changed and/or ... how do I raise SEL_CHANGED?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100728/e0d169e5/attachment.html>
2008 Aug 27
1
redirect with multi-dimensional parameter hashes
Hi,
Is it possible to redirect passing multi dimensional parameters?
I need to send params[:current][:selview] to another action mantaining
the same data structure
if I try as follows:
redirect_to :controller=>"main",:action=>"inquiry",{"current"=>{
"selview"=>params[:current][:selview]}}
I receive "syntax error, unexpected
2010 Aug 17
2
SEL_UPDATE not responsive
I have read what I could about SEL_UPDATE and I understand that the block(s) that get called "from" SEL_UPDATE only get called when "there is no more work to do".
I took the splitter.rb example that comes with FXRuby. I put in a "puts" in one of the SEL_UPDATE blocks and I get about 4 a second. Not awful ... but ... why is it so slow?
In my code which is ... more
2020 Nov 25
2
Stream over SSL and chrome
My site : https://radiobiscottes.studioo.fr/
--------
Norbert Deleutre <http://www.lmgc.univ-montp2.fr/perso/norbert-deleutre/>
P 0467149655 UMR CNRS 5508 <http://www.lmgc.univ-montp2.fr/>
A Campus Saint-Priest/Montpellier
> Le 25 nov. 2020 à 13:04, Damien GENESTE <d.geneste at illud.fr> a écrit :
>
> Hello Norbert,
>
> I don't know how i can help
2012 Feb 28
8
getting error:undefined method 'current'
hi all,
i am getting an error ''undefined method ''current'' for 852:Fixnum'', the
error coming for following line
<%if @expert_pagination.current.previous%>
<a href="#" class="darkgray1"
2011 Jul 11
36
has_many and belongs_to association
Hi ,
I want to test the one below but I got the problem
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
in my test
context "test"do
should have_many :phrases
end
in language.rb
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
error is
1) Failure:
test: check has_many and belongs_to
2007 Nov 19
3
link_to and GET parameters
Hi,
I am trying to generate a link to external site with GET parameters
( in new window).
I tried following code, but it does not produce any parameters.
<%=link_to "Open New Page", "https://www.foo.com/page/", {:popup =>
true}, {:param1 => "value1", :param2 => "value2"}%>
and
<%=link_to "Open New Page",