Displaying 20 results from an estimated 900 matches similar to: "NoMethodError - why?"
2006 Apr 18
4
IN-PLACE FORM EDITING
Ive been following the rails recipes (great book) and wanted to have a
larger a text field when editing in place.
The chapter it mentions that I can "force the InPlaceEditor to create
either a text ?eld or a <textarea> ?eld, using the :rows option to
in_place_editor_?eld( ). Then any value greater than 1 will tell
InPlaceEditor to generate a <textarea>." It
2006 May 16
5
Google Map problems
I followed the setup from http://cartographer.rubyforge.org/
but keep getting this error -
NoMethodError in Sandbox#map
Showing app/views/layouts/sandbox.rhtml where line #4 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]
Extracted source (around line #4):
1: <html>
2: <head>
2007 Apr 24
6
Regarding fork bomb in a CentOS 4.4 Server!
Hi again, I was reading from the net
http://www.kriptopolis.org/node/4067 about a forkbomb and ran it from a
root console in a non-critical machine running CentOS4.4 and the serevr
goes down... the command I ran was :(){ :|:& };:
Please, does anyone knows how to aboid this on CentOS?
regards,
Israel
2006 Apr 14
6
Login Generator with Extensible authorisation
I want my web app to have a signup/login generator but have 2 tiers of
users - normal and premium. There seems to be lots of login generator
and engines with scattered tutorials about extensible authorisation and
Im lost as which is the ''best'' or most ''easy to use'' solution. Anyone
had success in this area?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 19
2
update_attrbutes without saving?
Hello all,
Is there a method for updating all the attributes from a hash without
saving to the database? (the counterpart of update_attributes but
without saving).
What I want to do is:
person = Person.find(params[:id])
person.update_without_saving(params[:person]) #update the in-memory
object.
# Process person object
.......
person.save
I know that when you are creating a new object, you can
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 17
3
Updating Table without ID Column
Hey All,
I''ve been having a slight problem updating attributes for a row that
matches something other than it''s ID...For ex:
My table that has 3 rows..ColumnID, ColumnTitle, and ColumnDescription.
I want to update a row in that table WHERE CoumnTitle = @myvar....But
whenever i run update_attrbutes[:mytable] it''s looking for an id for the
record when i need to to
2006 Apr 27
5
def list - paginate question
How do I adapt this code to only list articles made by the user logged
into the session?
def list
@article_pages, @article = paginate :articles, :per_page => 10
end
--
Posted via http://www.ruby-forum.com/.
2006 Apr 11
4
find(params[:id]) question
Admin Controller -
def show
@wizard = Wizard.find(params[:id])
end
View -
<td><%= link_to ''Show'', :action => ''show'', :id => wizard %></td>
URL -
http://localhost:3000/admin/show/1
I want user_name (one of the columns in the database) instead of the id
to show
For example:
2006 Jun 14
1
file column validates_format_of
Been manually testing file column with success except it seems to upload
the file before validating it. Also .pdf files (which shouldn''t even
validate) crash WEBrick. What am I missing to solve these problems?
(apart from a brain!)
validates_presence_of :title, :file
validates_format_of :file, :with => %r{.(gif|jpg|png)$}i,
:message => "File must end with .jpg, .gif or
2006 May 04
1
Ferret and rails question
Is ferret the best way to implement a search option in your app?
If so what is a best way to do it - the plugin or the wiki tutorial?
--
Posted via http://www.ruby-forum.com/.
2006 May 05
1
hows does engines effect the default action mailer?
I installed engines to my app and now my salted login (which is not an
engine) wont send emails. Bit confused... :S
--
Posted via http://www.ruby-forum.com/.
2006 Apr 10
1
column.name question....
rHTML is
<% for column in Wizard.content_columns %>
<p>
<%=h @wizard.send(column.name) %>
</p>
<% end %>
It outputs:
Robs Site
Heading
logo.jpeg
London
------
Bascally 1 line for each column in the database. How do I edit the
rhtml so I can break up the output?
For instance JUST have ''Robs Site'' display nothing else. That mysql
column is
2006 Apr 25
5
Authorisation question
My authentication (signup/login) is up and running in my app, now I need
to implement an authorisation system. Its not going to be a complex
one. One admin (me) and then normal members and premium members. Any
tutorials or tips on a simple way to get this running? Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
5
little Live search problem
Works fine but when you use backspace or delete on the search word and
it hits 0 characters it displays ALL the Test names in the database!
def live_search
@phrase = request.raw_post || request.query_string
a1 = "%"
a2 = "%"
@searchphrase = a1 + @phrase + a2
@results = Test.find(:all, :conditions => [ "test_name LIKE ?",
@searchphrase])
2006 May 18
3
Google Map
Used a great howto @
http://iamrice.org/articles/2005/12/09/using-google-maps-in-the-uk-with-rails
for using google maps on uk sites. Just having one issue I can''t seem
to work out how to draw the postcode from my table I keep getting hit by
method errors.
The controller is
require ''postcode_2_latlong''
postcode = Postcode.new("TN22 2LG")
# I want this to
2005 Sep 29
1
minor(? ) Grandstream phone issue
I hate to bother the list with this potentially minor issue but....
I just wonder if it's a symtom of some other problem.
Every time I make a call the BT-102, with the latest firmware, she just
keeps the LED display lit and the timer counting after hangup.
I check the CLI and the hangup is being executed, I certainly was concerned
it might be keeping the line open but that doesn't seem
2017 Sep 26
2
building virt-builder still seems to fail.
Hi,
it seems that even after
commit df5bd5741b37da9cf97d7a76ac2805557aa630db
Author: Richard W.M. Jones <rjones@redhat.com>
Date: Tue Apr 29 15:43:20 2014 +0100
builder: Fix parallel builds of index-parse.o.
there is a small chance that a build may go wrong with the described
symtom, missing "do_parse" symbol.
It just happened to me on Debian's ppc64el buildd[1] and
2016 Apr 01
1
Using rsync to backup user redirected documents on ReadyNAS
Hello,
Using Samba 4.4 as a DC on Ubuntu 12.04LTS. Users 'My Documents'
are redirected to a member server running Samba 4.1.17 on Debian Wheezy.
I joined the ReadyNAS to the DC and set permissions using file explorer.
When I ssh to the ReadyNAS, I see the following on the folder destination.
*drwxrwx---+ 1 administrator domain admins 20 Apr 1 10:55 pfms1*
The rsync syntax and
2006 Jul 18
1
Ajax contact form
http://depot.iamjp.com/contact
Great example of what I need above, I just can''t work out how to turn it
from a demo to a working contact form! (yes im dumb)
--
Posted via http://www.ruby-forum.com/.