Displaying 20 results from an estimated 2000 matches similar to: "Pop quiz: Where do you watch for job postings?"
2006 May 24
1
Best practices: a little pop-quiz on my blog
Hey,
I just put up a little rails pop-quiz on my blog (more fun than just
writing a post saying "hey did you know...").
Seeing as it''s probably of interest to more than just the three
people (including my wife) that actually read my blog I figured it
would be okay to announce it here.
http://tinyurl.com/prxdl
I''ll post my answers in a followup tomorrow
2006 Apr 02
5
Showing current user''s information and saving
Hi,
I am logging users in and keeping them in session. The problem I am
having is showing only a certain logged in user''s information.
In the Adverts_Controler:
def show
@advert = Advert.find(params[:id])
end
I am also having issues with saving an advert for an user:
def create
@advert = Advert.new(params[:advert])
if @advert.save
flash[:notice] = ''Advert
2007 Aug 29
2
assign local variable instead of instance variable.
Hello,
I have a view that generates a list of adverts with <%=
render :partial => ''advert'', :collection => @adverts %>
I have the render call described with
@controller.template.should_receive(:render).with(:partial =>
''advert'', :collection => @adverts)
Bu when i was about to describe my partial i got stuck.
My partial _advert.rhtml:
2006 Apr 02
1
One to Many Relationship Issues
Hi,
I am having issues with a one to many relationship(it never works :-)).
Jokes aside, I am getting an error:
Mysql::Error: #23000Cannot add or update a child row: a foreign key
constraint fails: INSERT INTO adverts (`image_url`, `price`, `title`,
`website_url`, `description`, `user_id`) VALUES(''bb'', 22.0, ''aa'',
2006 Jul 21
1
Passing a variable between methods
Hi,
I am trying to add search functionality to may application. I am
struggeling to pass my query to the controller and then show all my
search results in another view. How would I do this?
Model:
class Advert < ActiveRecord::Base
belongs_to :user
def self.search(query)
if !query.to_s.strip.empty?
tokens = query.split.collect {|c| "%#{c.downcase}%"}
2009 Mar 01
15
Ajax in Rails
Hi All,
New to the group, and new to learning rails.
I''m having some trouble, i''ve done a few tutorials on creating some
small apps with rails and am now starting to play around myself.
I''ve been trying to create a simple form which when a user enters any
data that data is displayed as a preview elsewhere on the page
instantly, just like when creating an advert with
2006 Aug 12
2
Ferret Issues
Hi,
I have installed the ferret gem (on WIN XP). My search and result view
is working, but it comes back with empty results all the time. It seems
like ferret is building the index (there is 3 binary files in the index
directory).
If I add the line:
acts_as_ferret :fields =>
2010 Dec 09
2
Skip validation on nested attribute
Hi,
I have a two models, advert and address.
An advert has one address.
On my advert form I have a nested form of the address. But I only want
to create the nested address depending on the adver kind.
how can I skip the nested attribute validation?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Mar 01
0
Quiz,chat
I am new to rails framewrok ,i have experience in PHP and LInux background.I
am looking for some tutorial or famous app to create a Quiz and chat .I have
implemented quiz and flat file and db based quiz in PHP,but i wanted to do
it in Rila.Looking forward for community help. . .
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2006 Mar 15
0
[ADV] Best of Ruby Quiz available
Railsriders:
Quizmeister James Edward Gray II selected the best 25 Ruby Quizzes
from last year, then carefully collected answers and annotated them.
The result is "The Best of Ruby Quiz", a wonderful book which will
teach any Ruby programmer new techniques and approaches to coding.
If you want to hone your programming skills, stick to the front part
of the book and enjoy
2007 May 10
0
Counterintuitive behavior in ActiveRecord I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_
I was implementing dirty checking for an application, and I found
something that is a little counterintuitive. Let me start with a
quick quiz:
bob=User.find(1)
alice=User.find(2)
trip=Trip.new
trip.driver=bob
old_driver=trip.driver
trip.driver=alice
In this example, who is old_driver? If you guessed Alice, you''re right.
Inside associations.rb, the mutator is defined as:
2006 Apr 02
2
"Quiz" site
Hi,
I am thinking about how to best design a quiz site in RoR. I think it
should be fairly easy, but have run into a wall. In the simplest form,
the view would grab all of the questions for a particular quiz and
display them (e.g. multiple choice, so 4 option buttons per question).
However, I can''t figure out how to "mark" the quiz. The form is
submitted to the
2009 Jul 16
1
Statistics Data Manager in Novartis Spain - Barcelona
Dear All,
I have been asked to forward to you this job advert. The advert is in
Spanish as the role require knowledge of Spanish.
If interested please contact Jimena at jimena.aldasoro-ext at novartis.com.
Regards,
Marco
#########################################################################
- Puesto: Data Manager Estad?stico Marketing
- N?mero de plazas: 1
- Tipo de contrato: Temporal
2006 Aug 12
4
Ferret Wierdness
Hi,
I have installed the ferret gem (on WIN XP). My search and result view
is working, but it comes back with empty results all the time. It seems
like ferret is building the index (there is 3 binary files in the index
directory).
If I add the line:
acts_as_ferret :fields => [''title'',''description'',''price'',''website_url'']
2011 Apr 06
7
Quiz: Who finds the nicest form of X_1^\prime?
Dear expeRts,
I would like to create a plotmath-label of the form X_1^\prime. Here is how to *not* do it [not nicely aligned symbols]:
plot(0,0,main=expression(italic(X*minute[1])))
plot(0,0,main=expression(italic(X[1]*minute)))
plot(0,0,main=expression(italic(X)[1]*minute))
Any suggestions?
Cheers,
Marius
2012 Aug 18
5
Quiz: How to get a "named column" from a data frame
Today, I was looking for an elegant (and efficient) way
to get a named (atomic) vector by selecting one column of a data frame.
Of course, the vector names must be the rownames of the data frame.
Ok, here is the quiz, I know one quite "cute"/"slick" answer, but was
wondering if there are obvious better ones, and
also if this should not become more idiomatic (hence
2005 Dec 21
4
Who/What is making my field backgrounds yellow?
On *certain* fields in my rails forms the backgrounds are yellow. If I
check the page source there is no clue as to why. However, if I *save*
the page to disk and then open it in a text editor I can see that the
affected fields are like:
<input style="background-color: rgb(255, 255, 160);"
id="contact_first_name" name="contact[first_name]"
2011 Jul 25
5
Arel quiz: complex queries with associations
I have a real-world application with some complex queries that I want to
convert to Arel (as part of an upgrade to Rails 3.1). So that I can
understand what I''m doing before I flail around in my real app, I wrote
a little sample app (just the models) with some similar associations --
one table joined with itself and more tables that join to another table,
so there are some queries that
2009 Aug 21
12
What to do before launching v1.0?
I’m launching a rails website, the app is written and works, undoubtedly
it’ll be an unmitigated disaster when I launch but none the less I
thought I’d least attempt to give myself the best chance of success by
asking all the gurus here for some advice – pre launch advice if you
like.
In an ideal world I’d spend days and hours on all of these things and
get it absolutely spot on, but as we all
2006 Jun 09
9
Opinions on catch-all routing?
I remember reading somewhere a tip on improving your search engine
ranking, by forming URLs that included relevant text, e.g.
www.domain.com/article/man_eats_hat. In the rails app that I''m writing,
I''ve noticed I can set this up very easily by appending the post title
(after downcase.split.join(''_'')) to the post link. So, blog.com/posts/4
can easily also be