You've have to create a checkbox for this value:
input type=checkbox name=usersession[remember_me] /
in your erb:
% form_for @user_session do |f| %
% f.checkbox :remember_me, Remember me %
% end %
On Wed, Feb 10, 2010 at 8:57 AM, C+++ christiaan.vandenp...@gmail.comwrote:
it's 'remember_me'.
On Feb 10, 5:59 am, Smit Shah li...@ruby-forum.com wrote:
Hi..
I am using an API. In that, I have to send data in query string. Now my
question is how to get back from that site??? because it is not taking
return_url from myside. It gives me response. I want to again redirect
to some
On Feb 10, 5:30 am, Ryan Abbott abbot...@gmail.com wrote:
Yes I am attempting to basically give it a URL, I'm not sure how else
to do it..
Well you've got code to generate a pdf document, use that to save it
as a temporary file and attach that temporary file to the email.
Fred
On Feb 1,
Recently started working with rails; I'm very impressed so far, but I
do have a question -
Say I'm running a blog-type application. I've got a Users table, and
a Posts table. Each post on the blog is made by a user. The Post
table has an FK user_id that keeps track of the author of the post.
Hi
Thanks for the reply. What you said is right And from the doc what I
understood is it sets remember_me default as 3.months. But how can we
modify that? That is my question. What I need is when user check
remember_me check box from view time should be set to 2 weeks (say 2
minutes as an
Ok -
So should I have another line in that says:
user = invitation.sender followed by
@invitation.sender = @user ?
Sorry - may be a daft question, but trying to get my head round it as
I go. The tutorial has been trouble free until this... :-)
On 10 Feb, 04:09, David furb...@gmail.com wrote:
Hello
Anybody knows how to generate a rails application in a previous version,
after the installation of Rails 3.0.0.beta gem.
This would work before,
rails _2.3.5_ my_app
but fails now with ...
/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error':
RubyGem version error:
It would help if you show us the form(s)
--
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-t...@googlegroups.com.
To unsubscribe from this group,
Your question has too wide a scope.
What part are you having trouble with? Generating a new password,
sending the new password by mail, or making a scheduler that resets
passwords older than 15 days?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
Frederick Cheung wrote:
On Feb 10, 5:59�am, Smit Shah li...@ruby-forum.com wrote:
% @url = www.abc.com/api?name=data %
% response = redirect_to(@url) %
% if response == true %
� % redirect_to :action = 'success' %
% else %
� % redirect_to :action = 'failure' %
% end %
First off, this
class Post
belongs_to :user
end
Then you can do post.user.name retrieve the name of the author of the
post
--
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
i tried the plugin you suggested, which seems exactly what i'm looking
for.
but i got stuck:
my user model has this line
belongs_to :cap_residenza, :class_name = 'Cap'
and i added
accepts_nested_reference_and_attributes_for :cap_residenza, :codice, :required
= true
in the form view i added
validates_size_of :value, :is=9, :message=must be 5-digit number,
:if=Proc.new{|u| u.value.is_a?(Numeric)}
Looks corrent to me. Maybe the name of the field value is causing a
conflict somewhere. Try to rename the field to something else just to
test.
--
Posted via http://www.ruby-forum.com/.
On Feb 10, 6:50 pm, eugenio eugenio.mode...@gmail.com wrote:
i tried the plugin you suggested, which seems exactly what i'm looking
for.
but i got stuck:
my user model has this line
belongs_to :cap_residenza, :class_name = 'Cap'
and i added
accepts_nested_reference_and_attributes_for
Hi Sharagoz,
In realy nothing was made yet but i'm searching the best to do that. I
will try explain again.
My application have any resources that i need to share with others
users, for example CVs, but i need release the access by send data
like password and login by email, and ensure validity
On Wed, Feb 10, 2010 at 2:07 AM, Juanma Cervera li...@ruby-forum.comwrote:
Hello
Anybody knows how to generate a rails application in a previous version,
after the installation of Rails 3.0.0.beta gem.
This would work before,
rails _2.3.5_ my_app
but fails now with ...
Hi,
I have contacts table.
I have to insert and update contacts table.
Is that be possible to do this without having the contact.rb model?
Can I make direct interaction to the contacts table?
Can anyone help me out?
Thanks,
Tushar Gandhi
--
Posted via http://www.ruby-forum.com/.
--
You
On Feb 10, 12:53 pm, Tushar Gandhi li...@ruby-forum.com wrote:
Hi,
I have contacts table.
I have to insert and update contacts table.
Is that be possible to do this without having the contact.rb model?
Can I make direct interaction to the contacts table?
Well
Thanks Fred,
Actually my contacts table is in other database.
Means I have two databases development1 and development2. My main
database is development1. My contacts table reside in development2.
So I have writtes like this
establish_connection(:development2)
Is there a good reason you want to skip the model?
if contact.rb looks like this:
class Contact ActiveRecord::Base
establish_connection(:development2)
end
then you can do this in the controller=
@contact = Contact.find(1)
and it will fetch contacts from development 2.
--
Posted via
Hi all!
my first post here;
Does exist any Rails plugin or gem do realize something in this
application area:
Course Management System,
Learning Management System,
Virtual Learning Environment
?
More specifically: I'm looking for a web app framework to realizze
ON-LINE QUIZ
That's handy! Does that work too if I say
class Post
has_one :user
end
I guess the real question is - what's the difference between has_one
and belongs_to?
On Feb 10, 4:44 am, Sharagoz -- li...@ruby-forum.com wrote:
class Post
belongs_to :user
end
Then you can do post.user.name
You need to send a http request in the controller action and use that
info to redirect the user.
require 'net/http'
connection = Net::HTTP.new(www.google.com)
response =
connection.start do |http|
req =
Net::HTTP::Get.new(/#hl=ensource=hpq=ruby+on+railsaq=faqi=g10oq=fp=c26c79a56c95bda8)
robo wrote:
That's handy! Does that work too if I say
class Post
has_one :user
end
I guess the real question is - what's the difference between has_one
and belongs_to?
The location of the foreign key. Go read the Associations docs.
Best,
--
Marnen Laibow-Koser
Conrad Taylor wrote:
On Wed, Feb 10, 2010 at 2:07 AM, Juanma Cervera
li...@ruby-forum.comwrote:
/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error':
RubyGem version error: railties(3.0.0.beta not = 2.3.5) (Gem::LoadError)
from
belongs_to means the foreign key is an attribute of this model.
has_one/has_many means it's an attribute of the associated model.
On Feb 10, 2010 8:47 AM, robo chase.delanguille...@gmail.com wrote:
That's handy! Does that work too if I say
class Post
has_one :user
end
I guess the real
Your data model layer should not be aware of application state (or even
assume it is part of a web app). So, this should be done from the
controller/view layer.
On Feb 10, 2010 2:45 AM, lunaclaire szager...@gmail.com wrote:
I have a need to pass full, absolute urls to images for an interaction
If you need to run commands in the background, a message queue is the way
to go. Resque and resque-status offer you some ability to check in on the
progress of background jobs, though if you're shelling out you'd still need
to have some way for your background worker to monitor the (forked)
On Wed, Feb 10, 2010 at 6:09 AM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
Conrad Taylor wrote:
On Wed, Feb 10, 2010 at 2:07 AM, Juanma Cervera
li...@ruby-forum.comwrote:
/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error':
RubyGem version error:
Hi all!
In Rails 2.3, I could do the following:
map.connect /posts/favorites, :controller = :posts, :action =
:index, :filter = favorites
But it seems that the match command in Rails 3 doesn't accept
parameters. So, the following doesn't work:
match /posts/favorites = posts#index, :filter =
class UserSession Authlogic::Session::Base
def remember_me_for
2.minutes
end
end
Next, I would recommend looking at your cookies to verify that session
cookie is properly created and expired.
Good luck,
-Conrad
--
Posted via http://www.ruby-forum.com/.
--
You received this
class ContactsController ApplicationController
def index
�...@current_tab = 'Contact Us'
end
end
in a helper, probably application_helper.rb
def tab_link(tab_name, target)
link_to(tab_name, target, :class = tab_name == @current_tab ?
'current_tab' : 'jtab')
end
Is it OK
Hi.
I'm in a situation where I have to provide a hosted Rails App
solution. I'm running Apache with passenger in the backend.
What is the proper way to change the DB depending on the subdomain?
Should I use data_fabric?
--
R.
--
You received this message because you are subscribed to the
Marcelo Barbudas wrote:
Hi.
I'm in a situation where I have to provide a hosted Rails App
solution. I'm running Apache with passenger in the backend.
What is the proper way to change the DB depending on the subdomain?
Should I use data_fabric?
Generally, you don't need a separate DB for
Does anyone know if it's possible to do multiple AJAX responses to a
single request in Rails? I did some googling but didn't find anything
extremely helpful.
Thanks.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
Bob wrote:
Does anyone know if it's possible to do multiple AJAX responses to a
single request in Rails? I did some googling but didn't find anything
extremely helpful.
What do you mean? One HTTP request gets one response. That's the way
the protocol works
Thanks.
Best,
--
Marnen
This is an excellent use case for CloudCache - which has introspection, so
you can tell what's in cache when...
Implements ActiveSupport::Cache, so if you're already using that, it's a
coupla lines of change.
See getCloudCache.com
Cheers,
m
On Tue, Feb 9, 2010 at 4:41 PM, Tristan
On 10 Feb 2010, at 17:18, Marnen Laibow-Koser wrote:
Does anyone know if it's possible to do multiple AJAX responses to a
single request in Rails? I did some googling but didn't find
anything
extremely helpful.
What do you mean? One HTTP request gets one response. That's the way
the
Mat Brown wrote:
Your data model layer should not be aware of application state (or even
assume it is part of a web app). So, this should be done from the
controller/view layer.
On Feb 10, 2010 2:45 AM, lunaclaire szager...@gmail.com wrote:
I have a need to pass full, absolute urls to
Why not just call the script file from a script tag instead of
replace_html? In general, your JavaScript should be coming from static
external files.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
Well, now I tried. I have tried this on my view:
script
Mat Brown wrote:
Your data model layer should not be aware of application state (or even
assume it is part of a web app). So, this should be done from the
controller/view layer.
More regards to this: I am *deathly afraid* of communicating with web
services during my apps' request/response
Lucas Hills wrote:
module SOAP
SOAPNamespaceTag = 'env'
XSDNamespaceTag = 'xsd'
XSINamespaceTag = 'xsi'
end
Big thnx, this works!
--
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
Yuri Albuquerque wrote:
Why not just call the script file from a script tag instead of
replace_html? In general, your JavaScript should be coming from static
external files.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
Well, now I tried. I have tried this
I can't imagine what I'm trying to do is complicated at all in Rails.
Yet, I am now getting this error: undefined method `state' for
:StudentFailState:Symbol.
student.rb
has_one :student_fail
attr_accessor :student_fail_attribute
#controller
def student_fail
@student = @student.find params[:id]
This gives undefined method join error:
form_for @student do |f| f.collection_select(:student_fail_attribute,
StudentFailState.all, :id, :key) end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
John Merlino wrote:
I can't imagine what I'm trying to do is complicated at all in Rails.
Yet, I am now getting this error: undefined method `state' for
:StudentFailState:Symbol.
student.rb
has_one :student_fail
attr_accessor :student_fail_attribute
#controller
def student_fail
Hi,
Generally, you don't need a separate DB for each subdomain. One big DB
is usually better.
It's a high volume app, that's written as a standalone service.
Extending it as a hosted solution and keeping updates nice is a big
part of what the project is about.
--
Cheers,
M.
--
You received
Marcelo Barbudas wrote:
Hi,
Generally, you don't need a separate DB for each subdomain. �One big DB
is usually better.
It's a high volume app, that's written as a standalone service.
Extending it as a hosted solution and keeping updates nice is a big
part of what the project is about.
On Wed, Feb 10, 2010 at 11:39, Paul Harrington li...@ruby-forum.com wrote:
Mat Brown wrote:
Your data model layer should not be aware of application state (or even
assume it is part of a web app). So, this should be done from the
controller/view layer.
More regards to this: I am *deathly
Hi.
It's a high volume app, that's written as a standalone service.
Extending it as a hosted solution and keeping updates nice is a big
part of what the project is about.
And all of that would be easier with one big DB, at least as far as
you've described.
You are right, it would
Hey all,
I get an undefined method `join' for #String NoMethodError.
student.rb
has_one :student_fail
attr_accessor :student_fail_attribute
#controller
def student_fail
@student = @student.find params[:id]
def update_student_fail
@student.build_student_fail
DataMapper out of the box will let you use multiple databases,
although these need to be known at app boot time.
For ActiveRecord, this article might lead you somewhere:
http://tomayko.com/writings/rails-multiple-connections
Nathan
On Feb 10, 1:34 pm, Marcelo Barbudas nos...@gmail.com wrote:
Hi there,
I've been looking for a while now and can't seem to find where I'm
going wrong..
I'm following a railscast tutorial to send invites out to people.
there's n invitation.rb page:
class Invitation ActiveRecord::Base
#attr_accessible :sender_id, :recipient_email, :token, :sent_at
I have a class that compares invoice totals for a month and calculates
the dollars saved. The downside is it takes about 1 second per
invoice per month to calculate so it's taking a considerable amount of
time to display a complete report especially if you run it for a two
year period (48
Craig Westmoreland wrote:
THis page, for some odd reason will not render. Instead I get:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.
Can anyone see the obvious mistake? I could do with a fresh pair of
eyes on this... :-)
Have you looked at your
Thx for the replies, Mat and Paul.
I agree w Paul in this case. The model is responsible for the
communication w FB as part of a cross-posting step that is part of the
business logic. So, that's where I'm putting this.
And it kinda works... it *does* work as far as being able to call
image_path
yeah - it's complaining about the @user in
% if @user.invitation_limit 0 %
%= link_to 'Send invitation!',
new_invitation_path %
% end %
I've tried renaming it with just user, then
I don't see you defining @user anywhere. Which view is your code in?
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
my view is in the main layouts file.
I also tried to add @invitation.sender = @user to the invitations
controller but that hasn't solved it...
On 10 Feb, 19:24, Steve Klabnik steve.klab...@gmail.com wrote:
I don't see you defining @user anywhere. Which view is your code in?
--
You received
Your application.html.erb?
Then yeah, you're going to need @user defined in every controller.
Also, is this a user that was created before you added in your invitations?
If so, you won't have anything for an invitation_limit for any of your
users, you'll want to do a User.all.each{|user|
in that case, would it make more sense to add it to a page when a user
is already logged in?
I've just tried adding it to the invitation's index page, and i get
the same issue...
sorry
On 10 Feb, 19:45, Steve Klabnik steve.klab...@gmail.com wrote:
Your application.html.erb?
Then yeah,
Craig Westmoreland wrote:
my view is in the main layouts file.
I also tried to add @invitation.sender = @user to the invitations
controller but that hasn't solved it...
Of course. It's @user that's coming up nil in the first place.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
Craig Westmoreland wrote:
in that case, would it make more sense to add it to a page when a user
is already logged in?
Heck yes.
I've just tried adding it to the invitation's index page, and i get
the same issue...
sorry
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
Hmmm..
It's still not working, even when I've added it in the invitations
view page.
:-(
On 10 Feb, 20:02, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Craig Westmoreland wrote:
in that case, would it make more sense to add it to a page when a user
is already logged in?
Heck yes.
I've never seen any plugin or gem like that. Some time ago I created a
simple online examination app with Rails.
You can play around with it here http://rexaminator.com
If you have any questions and think I can help please let me know.
--
Rafal
--
You received this message because you are
Using rails 2.3 and MySQL 5.
I have code in a controller that is something like
begin
User.transaction do
user_object.save
do something that might raise an exeception
end
rescue
Log the error
give the user the form to try again
end
It works perfectly when the functionality is
Hello all
I wrote a gist, which describes my problem: http://gist.github.com/300860
What param I need to pass to form_for? Thanks
--
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
ok -
i've managed to get the following to render correctly (from within the
application.html.erb file:
% if @user.invitation_limit
0 %
%= link_to 'Send invite',
:controller = 'invitations', :action
Won't this savepoint also be rolled back?
Also, I am not storing any credit card numbers, cvv, etc. Basically
the last 4 digits, decline code, etc.
On Feb 9, 2:33 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
iwars...@stripey.net wrote:
I am upgrading a 2.1 Rails app and ran into a
considering it's user.invitation_limit, (or maybe @user), that means you
need to define one or the other.
--
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-t...@googlegroups.com.
To
Yeah - I have @ user defined in the view and the controller
On 10 Feb, 22:01, Steve Klabnik steve.klab...@gmail.com wrote:
considering it's user.invitation_limit, (or maybe @user), that means you
need to define one or the other.
--
You received this message because you are subscribed to
Please quote when replying.
iwars...@stripey.net wrote:
Won't this savepoint also be rolled back?
Why don't you try it and find out?
Also, I am not storing any credit card numbers, cvv, etc. Basically
the last 4 digits, decline code, etc.
Check your merchant agreement. I'm no expert, but
which recent plugin could be the best to handle a simple marketing
campaign ads app based on user profile tags ?
don't need sophisticated things :
- user profile - tags created
-marketing campaign - targets - tag selection (from tags list)
thanks for your update
(Rails 2.3.5 / Ruby 1.8.7 moving
I've found a solution and updated my gist, if anyone interested.
On Feb 11, 12:28 am, Alex Shkolnikov alex.shkolni...@gmail.com
wrote:
Hello all
I wrote a gist, which describes my problem:http://gist.github.com/300860
What param I need to pass to form_for? Thanks
--
You received this
Sharagoz -- wrote:
validates_size_of :value, :is=9, :message=must be 5-digit number,
:if=Proc.new{|u| u.value.is_a?(Numeric)}
Looks corrent to me. Maybe the name of the field value is causing a
conflict somewhere. Try to rename the field to something else just to
test.
Thanks Sharagoz. I
Are you defining @user in application_controller.rb? I don't see it
defined anywhere in the code you posted. If you're using an
authentication plugin, you probably want to do something like:
@user = current_user
Even then, you'll have to check to see if current_user is nil, unless
that page is
I have an application, where i.e., I can go to the users controllers,
and they manage all the basic actions by rest, like creating, modifying,
updating and deleting records.
Now, I want to reuse that code, from another part in the web page, so I
can list the users on that other controller, and if
From a migration. I want to initialize a new column called ident with
a string equal to prec-#{id} - where id is meant to be the id column
of the relevant row. This works:
Precinct.update_all(ident = 'prec-' || id )
I am confused about whether that bit of SQL is being parsed by Rails
code,
This seems to be contagious as now my Mac and other linux boxes that I
know have worked, don't work any more.
When I start script/console, I get the prompt but no application
objects, no models, no database.
What am I doing that is so wrong that the application it self works
like a charm, but I
From a migration. I want to initialize a new column called ident
with
a string equal to prec-#{id} - where id is meant to be the id column
of the relevant row. This works:
Precinct.update_all(ident = 'prec-' || id )
I am confused about whether that bit of SQL is being parsed by Rails
code,
Philip Hallstrom wrote:
From a migration. I want to initialize a new column called ident
with
a string equal to prec-#{id} - where id is meant to be the id column
of the relevant row. This works:
Precinct.update_all(ident = 'prec-' || id )
I am confused about whether that bit of SQL
Trausti Thor Johannsson wrote:
This seems to be contagious as now my Mac and other linux boxes that I
know have worked, don't work any more.
When I start script/console, I get the prompt but no application
objects, no models, no database.
What am I doing that is so wrong that the
On Tue, Feb 9, 2010 at 4:03 PM, Ichiro Saga li...@ruby-forum.com wrote:
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|
Marnen Laibow-Koser wrote:
To the OP: if this column is just going to be the id with a constant
prefix, then you don't need it in the DB!
It's initializing existing records in a migration. Over time the match
will not be present.
To the other point about || meaning concatenation. Thats what
On Feb 10, 2010, at 4:31 PM, Pito Salas wrote:
Marnen Laibow-Koser wrote:
To the OP: if this column is just going to be the id with a constant
prefix, then you don't need it in the DB!
It's initializing existing records in a migration. Over time the match
will not be present.
To the other
Hi all,
I receive an error when starting the server, namely:
~/Documents/blog$ rails server
/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error':
RubyGem version error: rack-mount(0.5.0 not ~ 0.4.0) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in
This is more a Ruby than a Rails question -- feel free to redirect me
as appropriate -- but either this is a Ruby 1.9 bug or I have some
serious misunderstanding. Essentially, I've caught the = operator
returning nil -- not -1, 0, or 1, but nil. Schematically:
class A
attr_accessor :slot
On Wed, Feb 10, 2010 at 6:56 PM, Joep Arts li...@ruby-forum.com wrote:
RubyGem version error: rack-mount(0.5.0 not ~ 0.4.0) (Gem::LoadError)
gem install rack-mount -v=0.4.0
--
Greg Donald
destiney.com | gregdonald.com
--
You received this message because you are subscribed to the Google
You'll want to hit the ruby-talk list with this question.
On Feb 10, 2010 7:58 PM, fearless_fool rdp...@gmail.com wrote:
This is more a Ruby than a Rails question -- feel free to redirect me
as appropriate -- but either this is a Ruby 1.9 bug or I have some
serious misunderstanding.
fearless_fool wrote:
This is more a Ruby than a Rails question -- feel free to redirect me
as appropriate -- but either this is a Ruby 1.9 bug or I have some
serious misunderstanding. Essentially, I've caught the = operator
returning nil -- not -1, 0, or 1, but nil. Schematically:
class A
Hi list, how are ya?
So, my current project is just begging for the ability to have
parameterized associations in my ActiveRecord classes. Basically I
need something that is a cross between named scopes and standard
associations (has_many specifically).
I'm wondering if such a thing exists or,
Hello,
I have a custom task_scheduler.rb file in RAILS_ROOT/configuration/
initializers.
It fails because I think that it doesn't know where to find my
Category model.
Do you know how I can load or have available the resources/environment
that myrails app uses into this script?
Thanks,
Frank
Can't reproduce with what you've given.
ruby-1.9.1-p376 class A
ruby-1.9.1-p376 ? attr_accessor :slot
ruby-1.9.1-p376 ? def matches? s
ruby-1.9.1-p376 ? puts s = @slot = #{s = @slot}
ruby-1.9.1-p376 ? (s = @slot) == 0
ruby-1.9.1-p376 ? end
ruby-1.9.1-p376 ? end
= nil
On Feb 11, 9:25 am, Kendall Gifford zettab...@gmail.com wrote:
Hi list, how are ya?
So, my current project is just begging for the ability to have
parameterized associations in my ActiveRecord classes. Basically I
need something that is a cross between named scopes and standard
associations
On Feb 10, 7:27 pm, Erol Fornoles erol.forno...@gmail.com wrote:
Named scopes are already sufficient for what you're trying to achieve:
class Sprocket
named_scope :versioned, lambda { |version| {:conditions = {:version =
version}} }
end
Hi friends
Im newbie act as solr, give me some ideas how to use the plugin act as
solr and give some example also
--
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-t...@googlegroups.com.
http://github.com/outoftime/sunspot
(Yep, shameless plug)
On Feb 10, 2010 9:57 PM, mahesh s mahesh...@gmail.com wrote:
Hi friends
Im newbie act as solr, give me some ideas how to use the plugin act as
solr and give some example also
--
You received this message because you are subscribed
Hola.
Antes de nada, que no te sorprenda si empiezas a recibir respuestas
diciendo que este grupo es en inglés sólo. ;)
Lo que quieres hacer se puede hacer con Javascript. Hay un libro muy
bueno que no sé si se ha traducido al español, aunque me imagino que
sí. En inglés se titula Ajax on Rails.
The popup sounds like some AJAX. You can create JavaScript views for
your actions (action.js.erb) and use XHR with an Accept: text/
javascript header to get those views (probably users/index.js.erb and
users/new.js.erb), and do the popup etc. within that. Similar course
of action for
Hi Conrad
Thanks. It perfectly worked
Tom
--
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-t...@googlegroups.com.
To unsubscribe from this
1 - 100 of 101 matches
Mail list logo