Displaying 14 results from an estimated 14 matches for "sharagoz".
2010 Apr 16
4
DEEEEPLY nested
Hello,
i have "a" has many "b", "b" has many "c", and "c" has many "d"
Now... "d" is a user model, and I have a current_user helper method
defined.
If i navigate to an "a" show page, how can I make sure that my
current_user ("d") is part of that "a"? meaning how can i make sure
that
2010 Feb 23
12
"no such file to load -- gettext/rails" error
I get the error below when I try to start my server.
Here are the versions installed:
OS: Windows Server 2008
Ruby: 1.8.7
Gems:
actionmailer (2.3.5, 1.3.5)
actionpack (2.3.5, 1.13.5)
actionwebservice (1.2.5)
activerecord (2.3.5, 1.15.5)
activeresource (2.3.5)
activesupport (2.3.5, 1.4.4)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
gem_plugin
2010 Feb 03
7
could not find rmagick locally or in a repository
I unzipped simple captcha in vendor/plugins
Then I did
>rake simple_captcha:setup
Gave error:
rake aborted!
no such file to load -- RMagick2.so
SO I thought Rmagick has to be installed.
So downloaded
2.12.0 binary gem for Ruby 1.8.6 DT 2009-10-04 16:05
RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip
Unzipped the file
Ran ImageMagick-6.5.6-8-Q8-windows-dll.exe
It installed the program in
2010 Apr 23
2
What is the difference between new and build?
What is the difference between
parent.children << child.new
and
parent.children.build(params[:child])
--
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
2010 Feb 23
2
Problem: The command "rake db:create:all" crashes
Hi All,
I''m running:
Rails 2.3.5
MySQL 5.1.44
WindowsXP-Pro/SP3
Following Noel Rappin''s book, Pro RoR, I successfully got past the
point of creating my first scaffold:
ruby script/generate scaffold supplier nickname:string qbname:string
That produced the migration, 20100221011210_create_suppliers.rb:
class CreateSuppliers < ActiveRecord::Migration
def self.up
2010 Apr 29
2
send_data => invalid byte sequence in US-ASCII
I''m trying to display a generated .png plot via send_data(), but it
results in a server error "invalid byte sequence in US-ASCII" error.
I''m pretty sure this means that I need to specify the encoding
somewhere, but I haven''t been able to figure out where or how to do so.
Some particulars:
I''m running gnuplot through a pipe to generate a plot in .png
2010 May 30
5
Automatically decrement value each day
I have a Person model with a points attribute. For the most part,
points values will be incremented and decremented via user votes.
However, I''d also like to decrement a Person''s points by half a point
each day.
How do I automatically decrement the value once per day?
Your help is greatly appreciated :)
Becky
--
Posted via http://www.ruby-forum.com/.
--
You received this
2010 Feb 10
6
validation problems
Hi, there.
I have two validations in the model:
validates_numericality_of :value, :only_integer=>true,
:allow_blank=>true
validates_size_of :value, :is=>9, :message=>"must be 5-digit number",
:if=>Proc.new{|u| u.value.is_a?(Numeric)}
They work as expected except when the :value is character/string like
"a" "abc", the second validation will also output
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 Feb 23
0
rake db:create:wants LibMySQL.dll for MySQL 5.0.37; where?
Hi All,
I''m running:
WinXP-Pro/SP3
Rails 2.3.5
MySQL 5.0.37-community-nt
I ran rake db:create:all and got something like:
LibMySQL.dll required.
I had a worse symptom previously when, on an earlier post on a related
failure, Sharagoz kindly suggested I drop back to a 5.0 version of
MySQL.
As I prepared this post, I wanted to recall my version. In
particular, I wanted to run
select * version() in MySQL. But I was told Windows didn''t have that
app. So I added a path to it in the environment. ( thought I
requested thi...
2011 Jul 18
0
[gem] Rails Exception Handler released
...mized responses that are rendered within the applications
layout file
- Fine grained control over which exceptions should have which
responses
- Filtering options to help get rid of exceptions created by those
pesky web crawlers
Check out the project on github for the details:
https://github.com/Sharagoz/rails_exception_handler
--
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 rubyonr...
2010 Apr 28
2
Rails - associations help
Hi
I have two models .
Dbase
--------
name
vendor
type
port
defuser - default user name
Users
-------
username
password
email
I need to build an association between these two in that the dbase
model''s defuser needs to be present in the users table. I am from a
relational database background so am trying hard to understand rails
associations.
What should I do to associate the
2010 Feb 20
3
update user input to another table without using html form
Hey all,
Let''s say you are not going to use an html form. Rather the user will
input data in a third-party application that will communicate with the
rails controller through http requests, but serves as a replacement to
the html. In other words, it''s taking the place of front end.
My question is can you update the attributes of another table, let''s say
studentfails
2010 Jun 15
3
Newbie trying to set up rails with MySQL
Hello --
Please pardon my newness -- I''m just getting started with rails, and
I''m having some difficulty getting it set up with MySQL.
I am able to get the basic ruby server running (script\server). When I
created a new page (using script/generate controller about index), I
am not able to navigate to the new page, and Ruby either crashes or
gives me an error:
/!\ FAILSAFE /!\