Displaying 20 results from an estimated 71 matches for "nubie".
Did you mean:
nube
2007 Aug 15
4
nuby: how spec redirect_to at ApplicationController
Good morning rspec people!
Still rspec nuby: I must do something wrong obviously.
How can I spec about redirect_to at ApplicationController
describe ApplicationController do
it "method login_required should redirect to home path without login" do
pending "I tried to use controller.login_required.should be_redirected
and got NoMethodError with nil object
2006 Jun 16
1
Nuby Question: How best to read a child record?
I want to read through all the child records for a given parent. What
would be the correct way to do this? Advise would be most welcome.
Regards,
Paul
2006 Jun 27
1
Nuby Q: Splitting of large projects for speed gains
Hi all,
Quick question - I have a project with a public front end, and an
administrative back end. No need for them to be together. Would there be
any speed gains on the hosting/serving side of things to keep them as
separate projects?
Thanks in advance!
Cameron
--
Posted via http://www.ruby-forum.com/.
2006 Mar 14
2
Nubie: collection_select with two fields concatenated
I have a table with (among others) :prefix and :lastname
In my view in a collection_select I want to see "prefix lastname". I
have ab-so-lu-te-ly no idea how to do this. Can anybody show me?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
1
Nuby: HABTM and drag-and-drop views
I have two tables that have a HABTM relationship: Teacher
has_and_belongs_to_many Groups, and Group has_and_belongs_to_many
Teachers.
This is what I want: select a Teacher, and then drag Groups from one box
to another to assign them to the teacher. Or, select a group, and drag
and drop Teachers to assign them to groups. All using AJAX, (off
course).
Only problem is, I don''t know
2006 Sep 17
1
Nuby experiences
Hello all,
I am new to dovecot and have had a good experience so far. I'm using
fetchmail - exim - dovecot - my email clients (mac os mail and
thunderbird so far). I'm also using Ubuntu Server i.e. debian.
I didn't like the inflexibility of mbox so I did a tweak to exim to
deliver mail to a Maildir folder in my home directory on the server. I
restarted Dovecot and it found it!
2006 Apr 05
1
Nuby Sortable Question? How do you pass multiple lists back to the server
I have multiple drag and drop lists. If you sort within one list, you can
pass the list back to the server using:
<%= sortable_element ''task-list'' << person.id.to_s ,
:url => { :action => "noop", :id => @user },
...
%>
Which causes this to be included in the javascript:
onUpdate:function(){new
2006 Apr 29
2
nuby migration question -- data migration, MySQL => postgresql
How do I best migrate the data? For small databases I can text-edit the dump file from
MySQL. The postgresql compatibility switch doesn''t help on mysqldump. Any ideas. Can
MySQL export CSV that postgresql can import ?
W Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Aug 26
2
ror app with advanced rspec?
Hi!
Can anybody link to some ror based project what is using rspec, so
nuby as me can learn from it. So it should have updated and practising
advanced rspec.
After reading last threat about "testing behaviour or testing code?",
I just realised that I would definitely learn something from app like
that. Some casual googling didn''t help me this time.
Thanks!
Priit at
2007 Apr 06
3
@ vs self in models?
i''ve seen both of these syntaxes before and have also used both in my
own models:
class Foo
def get_bar
@bar
end
end
and
class Foo
def get_bar
self.bar
end
end
seemingly with no difference... i''m a nuby though so could anyone
enlighten me to the differences if there are any?
thanks,
jeff
--~--~---------~--~----~------------~-------~--~----~
You received
2006 May 24
1
send email from form input
OK, I am a Rails nuby, so please keep that in mind. I want to have a
form on a page where users can enter in their email address in one
field, a message in a text area field, and when they click "submit" the
message should be sent to a static email address, say me@mysite.com. I
have read the "HowToSendEmailsWithActionMailer", but I am not sure this
is exactly what I need.
2006 Jan 10
2
the dreaded error Before updating scaffolding from new DB s
Hi
I am pretty sure that this is a common nuby problem but I cannot figure
it out i try to run scfaoldong and get a error "Before updating
scaffolding from new DB schema, try creating a table for your model"
I have mysql set up and created the tables etc.
Derek
--
Posted via http://www.ruby-forum.com/.
2006 May 03
2
Conditional statement style
This is a bit of a nuby question methinks but i''ve had a play/search
around and it''s just bugging me now :0)
Say I have a conditional statement, testing a variable against a number
of values. The first way i did this is like so:
if myvar != "" and myvar != 0 and myvar != nil
# .. code
end
This seems a bit messy - is there neater way of doing this? I thought of:
2007 Aug 28
3
How do you keep mocks updated without pain?
Hi!
I know you must be answering a lot of basic questions, sorry about that :-)
However I have not get it, how do you keep mocks updated without pain?
I reached to the point where mocking things for view. I spec
model-controller-view using "correct doc" way mocking-stubbing (plus I
should run integration test to be sure that everything really works
together).
Now, when I want to
2006 Jan 15
0
OS X Rails - Nuby
OK, I''m diving into new things - a .net programmer and windows user
trying to develop in Rails on my Mac. Initial setup was easy, and I had
things working and was thrilled with myself. Then I shut down. Next
time I booted up, mysql was acting all kinds of funny. I finally got
that working again (I *think* it mostly had to do with me not having the
right path, I unfortunately
2006 Mar 01
2
error: uninitialized constant
total rails nuby here. I have a table "thumbnails", hence the model
Thumbnail. I''m extending the Thumbnail class with a few constants
needed for thumbnail cropping:
class Thumbnail < ActiveRecord::Base
SOURCE_FILE_PATH = "path/to/source"
TARGET_FILE_PATH = "path/to/target"
TARGET_WIDTH = 100
TARGET_HEIGHT = 100
end
Now, in my controller
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone,
I''m a rails & ruby nuby, and this is my first post to the list.
Here''s my environment in case it helps diagnose my problem:
Ruby version
1.8.4 (powerpc-darwin8.6.0)
RubyGems version
0.8.11
Rails version
1.1.2
Active Record version
1.14.2
Action Pack version
1.12.1
Action Web Service version
1.1.2
Action Mailer version
1.2.1
Active Support version
1.3.1
I did
2005 Oct 11
4
Searching an attribute in a hmabtm relationship
(Nuby to Ruby and Rails...)
I''ve implemented security using the login generator in a simple app so
that I have a user table, a roles table, and a join between them
(roles_users). All works as expected. I now need to check if a user
has a specific role, but my approach is off somehow.
Here''s what I''ve tried thusfar:
user_roles = @session[:user].roles
2006 Jan 14
11
nuby: do models have to inherit directly from ActiveRecord?
Hello,
I have a few models -- book, cd, dvd -- for which I''d like to have an
abstract base superclass to hold some common stuff. That abstract class, I
was thinking, would inherit from ActiveRecord.
Didn''t work, though, and looking around, I found this:
<http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel>
2006 Jul 06
0
ActiveRecord''s bundled Transaction::Simple namespace issues?
Hello all.
I''m working on a program that uses both ActiveRecord and PDF::Writer.
The latter requires the Transaction::Simple module, and ActiveRecord
contains a "built-in" copy of Transaction::Simple - but the namespaces
appear to clash, if I''m understanding things correctly. (I''m a bit of a
ruby nuby, so please excuse me if I''m misunderstanding this