Displaying 20 results from an estimated 4000 matches similar to: "undefined method `^' for "e":String"
2009 Sep 28
2
Error with flash and form_authenticity_token in new rails application with scaffolding
Hi All,
I get this strange problem with newly scaffolded apps - I''d really
appreciate any help in this regard.
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:46:in `block in secure_compare''
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/
active_support/message_verifier.rb:45:in `each''
2009 Sep 12
5
undefined method `^' for "d":String
Hi guys.
I''m a freshman on Rails (and Ruby) so I''m sorry if my question is
pretty basic, and possible has a vary basic answer. I tried to Google
this problem, but a couple of hour after and no solution found, I
decided to ask for help here.
I have installed ruby 1.9.1p243, Rails 2.3.4, Gem 1.3.5, SQLite
version 3.6.18 (I think this is all that it''s needed).
I´m reading
2009 Jul 19
9
Equipment_URL Failed to Generate (new_equipment_path)
I''m trying to use new_equipment_path, which creates the appropriate
link. But, when trying to evaluate "equipment/new" I get the error
below. I''ve included my routes (rake route). Equipment is one of those
words that pluralizes to "equipment", so the singular is right (from
what I know from this forum.
Any help would be appreciated.
Error:
equipment_url
2010 Jun 05
6
How do you update HABTM relationships or create.
Hi,
I have a User model with a HABTM relation to a Role model and vice
versa. So There''s a roles_users table that references :user and :role.
I''m using formtastic, and in the user.edit.html.erb I have a line that
outputs the roles as a multi-select list box. But the box is not
showing the roles that have been assigned to the users.
Another problem is that if I select a few
2009 Jul 29
3
Use of Ruby Gem and Plugin
Hi,
I need to know what should we use in ROR application
gems or plugins.
Which is the best for any ROR application?
Can anyone brief me about this.
Thanks
--
Posted via http://www.ruby-forum.com/.
2009 Jul 17
3
how to get "www.site.com/user1" address
Hi,
I am a newcomer to the Rails Front. Currently reading chapter 17 of
Agile Web Development on Rails. But a burning question, that I would
appreciate anyone being able to verify for me!
Here goes:
What I am hoping of trying to build is a site where I can have a page
for individual entry in the database. So if it were users: I wanted to
have a page in the the format: www.example.com/user1
2009 Oct 01
3
sqlite limit
Hi All,
I am working on a POC that I''d like to show a group of 10 to 15 folks.
I was wondering if sqlite would do for db with about 20 people hitting
on the application. Does sqlite locking the entire db while writing
manifest itself in such scenario?
Regards,
Kashyap
2009 Oct 11
5
Dojo with Rails
Hello Group,
I am a PHP programmer eager to use Rails. I want to know weather there
is any tutorials on how to use Dojo with Rails? I checked out d-rails
Google Group, it was in mess! It gives me a impression that d-rails is
dead. Is there there any good and possibly easy and reliable way to
use Dojo in Rails?
Regards
A.K.Karthikeyan
2010 Jan 29
4
requiring records in the DB before testing
Is there any way I can require a small set of data be in the test
database before any tests are run? (unit, functional, integration,
cucumber, etc)
Any way besides using fixtures, that is.
Overload a rake task?
Modify test_helper?
Any ideas?
(Simple Case: I have to have a minimal set of user roles defined
before any users can be created)
--
You received this message because you are subscribed to
2014 May 03
0
Putting form_authenticity_token (csrf token) in a cookie instead of in meta tags?
When you generate a default Rails app, it puts this in
application.html.erb:
<%= csrf_meta_tags %>
It does this so the remote forms can be submitted--i.e., so JavaScript can
submit a form. When jquery-rails is about to submit a form, it looks for
the <meta> tags named "csrf-param" and "csrf-token" and from them it
constructs a hidden
2010 Sep 21
0
Upload form with uploadify jquery plugin
I would like to integrate the uploadify plugin with a standard rails
form. However I can''t figure out how to add a new field and have it get
submitted with the file upload. I added a name field into the form, but
the valued does not get submitted.
<%
dialog_file_description = ''Photos''
allowed_extensions = [:jpg, :jpeg, :gif, :png]
max_size = 20.megabyte
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
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t
2010 Mar 18
0
[LLVMdev] How to link LLVMCore.a into a custom pass that is fed to opt
Hey all,
I need to use C bindings in a pass that I am authoring (specifically, I want
to use the OCaml bindings that are tied to the C bindings to author the
pass). However, this requires that I link in LLVMCore to provide said
bindings to my library. From what I've read, there is a known issue with
linking LLVMCore into a module that is fed to opt. Namely, you get the
following assertion:
2011 Jun 01
7
desperate, errors with file upload
hello,
i implementing a file upload using paperclip plugin. i getting the
following error [1] when uploading a file. I''m using the gems rails
v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the
model like [3].
Interesting is that i get two different errors, on the localhost with
webrick it says:
Status: 500 Internal Server Error
no marshal_dump is defined for class
2009 Aug 06
13
Redirect after login
Hi,
I''m new to Ruby/RoR so please bare with me!
I''m trying to adapt a ruby setup where someone logs in to a bonjour
service via a web browser. I have the login screen which asks for host
and password. There is only one user per host and i can log in fine.
It''s suppose to redirect me to /list in my browser but
doesn''t. Once i''ve entered the correct
2020 Jun 04
2
Preserving destination group and owner
Hi,
I'm trying to get an rsync updating some files without changing their owner,
groups or permissions. I've read man pages etc. stating I need to use the
"--no-o", "--no-g", "--no-p" flags, something like
rsync -r --no-p --no-o --no-g source destination
While the permissions are keeped, there is something not working as
expected or I'm missing
2008 Oct 16
1
apply, t-test and p-values
R 2.7.2
Windows XP
I am using apply to compute a series of Student's t-test from two matrices, sample1 and sample2.
boo<-apply(sample1,1,t.test,sample2)
I want to pick of the p-values from the tests, but can't seem to get it to work. I have tried several methods to get the values including:
boo<-apply(sample1,1,t.test$t.test,sample2)
boo<-apply(sample1,1,t.test,sample2)$t.test
2009 Nov 12
9
uninitialized constant XML::Document
Hi All,
I have installed "libxml-ruby" gem on my ruby instllation. while trying
to create xml document with ruby progam in Rad Rails am getting error
like "uninitialized constant XML::Document (NameError)"
do i need to config any thing else in environment.rb file
Thanks in advance
Chinna.
--
Posted via http://www.ruby-forum.com/.
2011 Sep 26
1
How to Store the executed values in a dataframe & rle function
Hi group,
This is how my test file looks like:
Chr start end sample1 sample2
chr2 9896633 9896683 0 0
chr2 9896639 9896690 0 0
chr2 14314039 14314098 0 -0.35
chr2 14404467 14404502 0 -0.35
chr2 14421718 14421777 -0.43 -0.35
chr2 16031710 16031769 -0.43 -0.35
chr2 16036178 16036237 -0.43 -0.35
chr2 16048665 16048724 -0.43 -0.35
chr2 37491676 37491735 0 0
chr2 37702947 37703009 0 0