Displaying 20 results from an estimated 3000 matches similar to: "syntax error, unexpected $end, expecting rASSOC"
2012 Jan 23
3
How can I access information stored after I run a command in R?
Dear all,
Supposed I run the following command:
###############################
#install.packages("Rassoc", dependencies=TRUE)
library("Rassoc")
ca=c(139,249,112)
co=c(136,244,120)
a=rbind(ca,co)
MAX3(a,"asy",1)
##############################
I get:
The MAX3 test using the asy method
data: a
statistic = 0.5993, p-value = 0.7933
How can one save the result
2010 Oct 15
0
AssociationTypeMismatch / Model Caching in development envirnment
Hi there—
I''m trying to get started with Rails, and I''ve run into this issue and
searched high and low--so hopefully someone can help point me in the
right direction.
I''m having an issue where my model classes seem to be getting cached by
something, and so if I make subsequent requests, I get an
AssociationTypeMismatch error. To be specific, on update is where it
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
I''m trying to test registration emails (sent with devise), and I keep
getting the error:
Net::SMTPServerBusy: 454 4.7.1 <model_spec-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>: Relay access denied
I''m running Rails 3.2.11 with Capybara, and I have (temporarily) chopped my
spec_helper.rb and test.rb files down to the bare minimum, still getting
the error above.
2006 Dec 28
1
ActionMailer/SMTP: Net::SMTPSyntaxError when message body contains only a 'dot'
FYI:
I don''t think this is a very well know. It seems that, on some
operating systems, ActionMailer/SMTP crashes when it sends an email
with only a ''.'' (aka a ''dot'' or a ''period''). Specifically, you get
Net::SMTPSyntaxError (502 Error: command not implemented):
Environment Details:
$ uname -a
Linux private1 2.6.15-26-server #1 SMP
2010 Aug 10
3
ActiveRecord::UnknownAttributeError: unknown attribute: <script type
Has anyone seen this happening to their apps?
I''m starting to get errors like this come across from one of my apps:
ActiveRecord::UnknownAttributeError: unknown attribute: <script type
The parameters being sent are:
{"user"=>
{"email_confirmation"=>"someone-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org",
2011 Nov 23
2
How to increase precision to handle very low P-values
Hello, Rlisters
I have to compute p-values that are on the tail of the distribution,
P-values < 10^-20.
However, my current implementations enable one to estimate P-values up to
10^-12, or so.
A typical example is found below, where t is my critical value.
########### example - code adapted from Rassoc #######################
rho01 = 0.5
rho105 = 0.5
rho005 = 0.5
t = 8
z = 2
2011 Mar 04
1
How to modify the template path for ActionMailer used in a Ruby script ?
I am testing a ruby 1.9.2 script (it''ll be run in a cron task
later...) in which I am trying to use ActionMailer
All my files are in a single folder ''joinus_email
- joinus_email
joinus_email.rb
notifier.rb
- notifications
joinus_email.html.erb
joinus_email.text.erb
running the script joinus_email.rb, (in which I defined the
2008 Sep 12
1
restful_authentication rspec failures "Mysql::Error: Incorrect datetime value:"
I am getting 193 failures that all have "Mysql::Error: Incorrect
datetime value:"
how do i fix this??? i am new to rspec and restful_auth, so if i am
doing something wrong, let me know!!!
windows xp
rails 2.1.1
rails testproject
cd testproject
# create my databases and edit database.yml
git init
git submodule add git://github.com/dchelimsky/rspec.git vendor/plugins/
rspec
git
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier versions of Rails ActionMailer used to implicitly send
multipart (text/plain and text/html) email messages for me, but it
looks like now it''s sending two text/plain parts.
Simplified details:
Here''s my model:
class Notifications < ActionMailer::Base
def confirmation(sent_at = Time.now)
@subject = ''Thank you for registering''
@body
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
I have searched a lot for a solution, but I could not find it! I am trying
to make a rails application after watching Michael Hartl''s tutorial and
when i fill data manually and submit it nothing happens and nothing records
in the Mailers table and I am facing the following error:
Failures:
1) Mailer pages mail us with valid information should send a mail
Failure/Error: expect
2013 Nov 06
5
Is it possible with Rails to interact with SVN Server and/or the server's shell?
Hello! I''m fairly new to Ruby and Rails, and currently I don''t have any
knowledge on interacting with the server''s shell or a SVN server, but now I
have to develop an app where admins allow/restrict access to files and
folders from the app and some sort of version control of the files is need
so I thought, to install a SVN server also and from the app allow users to
2011 Oct 19
0
Email Anonymization
I''m working on an email anonymization feature for my rails app (kind of like
craigslist). I''ve configured postfix to pipe all emails addressed to
user-*@example.com (i.e. user-1234-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org, where 1234 is the user id in
the database) into rails via the mailer''s receive method.
Now, the idea is to first check that the sender''s
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
Hi,
Why did you allow this incompatibility? ;)
* fixtures/notifications/signup:
_foo
@expected.body = read_fixture(''signup'')
p @expected.body
#=> " foo\n"
# because text.gsub(/_/," ")
If you enhance TMail::Mail#body like this,
I want you to convert mail.body code in render_body.
My mailer code now:
# topic is a ActiveRecord instance. topic
2009 Jan 13
0
optional authentication and HTTP Basic
Hi all,
I have an app that originally only supported form-based
authentication, and showed pared-down content to unauthenticated
users. I then layered on HTTP Basic authentication using
authenticate_with_http_basic, which worked fine for scripts like LWP/
wget/curl.
However, some web browsers refuse to submit credentials in the URL
(eg.
2012 Mar 14
0
How do I create a new object in testing to test a controller?
I''m using Test::Unit to do functional testing on one of my controllers.
The action I want to test is create, from SessionsController. I have
simplified it to the extreme:
def create
@user = User.find_by_email(params[:email])
if @user
flash.now[:notice] = "ok, it exists"
else
flash.now[:notice] = "it does not exist"
end
render :new
end
This is my
2012 Feb 14
6
SMTP problem.
Hey all, well I am trying to send emails to newly created users but I
have a problem.
In the rails log it states that the email has been sent but the email is
never actually received so obviously there is a problem.
I have noticed one in particular and I don''t understand how to fix it.
Once I create the user I get the following error message:
Net::SMTPAuthenticationError (535-5.7.1
2010 Mar 04
5
has anybody made actionmailer work with rails 2.3.5?
Hi,
I have wasted few days and I''m not getting anywhere. I was trying to
follow tutorial on Rails Guides and this one:
http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm .
All I need is to be able to send some text, nothing fancy. Why in
Rails it has to be so difficult? Why it can''t be so simple as in PHP?
Can anybody point me to some good simple tutorial,
2011 Jul 19
0
Ruby on Rails Tutorial Chapter 8 Signup Success
I have written the Users controller and Spec tests correctly for the
"successful creation" in the User controller however I get the
following two errors:
1) UsersController POST ''create'' success should create a user
Failure/Error: lambda do
count should have been changed by 1, but was changed by 0
#
2010 Jun 17
1
syntax error, unexpected kEND, expecting $end
I get this error
/Users/sopira/rubydev/hello/app/models/spracovatel.rb:5: syntax error,
unexpected kEND, expecting $end
on the 5th line of the code, which has got just (and only) 5 line:
CODE:
Class Spracovatel
def spracovat
return 5
end
end
What can cause this error?
After digging all the internet I have not found any idea.
Maybe here.
Thanks,
Michael.
--
You received this message
2006 Mar 08
1
question about options_for_select array
Hi!
If i have something like this used to create select tag:
options = [["Dollar", "$"], ["Kroner", "DKK"]]
and later read value from the database and get "DKK", what is the
easiest way to get "Kroner" value?
--
Posted via http://www.ruby-forum.com/.