Canvas wrote:
> I have a daemon that executes a rake task periodically in a loop in
> the backend. And every time it runs the rake task, rails environment
> is reloaded. Is there a way that the rails environment is loaded only
> once before the loop and the following rake task will not load it
>
Martin is right, but would like to add a comment. If you do
<%= select_tag 'my[select]',
options_from_collection_for_select(Model.find(:all),'id','name',some_string)
%>
Then you do need to pass some_string as string. However, if you are
passing symbols, the you would need to convert to the sym
Gottit - thank you both for clearing that up
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from th
Thanks a lot.. I was searching for the exact same thing...
But if you are using this form for creating a New file upload, you have
to instantiate the nested object too.
example -
for the code given above
>
> <% form_for @music_service, :html => {:multipart => true}) do |f| %>
>...
> <% f
Sounds like you did the freeze as root. That's not a very good idea.
On May 1, 8:29 am, ih wrote:
> That worked, thanks. I thought unfreeze was doing it, but I did not
> check and it turns out I needed to have super user permission.
>
> On May 1, 10:22 am, Colin Law wrote:
>
> > Check there i
I am interested in this also.
Sorry don't have any ideas as I am to new to RoR myself
On Fri, May 1, 2009 at 7:32 PM, miga wrote:
>
> Is there a way to rewrite the following Model method avoiding
> connection.select?
>
> class LineOrder < ActivateRecord::Base
> belongs_to :auction
> belongs_to
Try This:
class Company < ActiveRecord::Base
belongs_to :business, :polymorphic => true
has_many :people
has_and_belongs_to_many :mops
end
class Person < ActiveRecord::Base
belongs_to :contactable, :polymorphic => true
belongs_to :company
end
class Contractorco
If you are interested in a complete system that also handles payment from
your users you could try RailsKit - Subscription code.
Its not free and I am only a customer but it is very comprehensive for
setting up a Saas (Software as a Service) website.
On Sat, May 2, 2009 at 11:16 AM, srj wrote:
'Where is the button problem?
Steve Shepherd
Mob:+64 (0) 27 4338154
Email: sargs...@gmail.com
Analyst
On Fri, May 1, 2009 at 4:12 PM, Eddie Ridwan <
rails-mailing-l...@andreas-s.net> wrote:
>
> I have a link_to_remote call which works as expected:
><%= link_to_remo
Don't store the plain text and the hashed password in the same
column. Create the methods for the plain text password in your model
and store the hashed (and salted and stretched I hope) value in the
database. Then fix your validation, since the model should be
checking the password before hashi
I'm seeing a similar problem, which started happening around the time
we upgraded to Rails 2.3.
Have you tried logging into the console, and doing...
>> ExceptionNotifier.exception_recipients
=> []
That is what mine looks like. I.e., the recipients are gone.
However, I fixed this by changing
Thanks for the tutorials - That is what I need because the books I
have read so far are good, but a little too basic for what I am
trying.
On May 1, 5:35 pm, Chris Hanks
wrote:
> These tutorials will show you how to set up a user
> registration/authentication system with Authlogic, and then to s
Anyone?
--
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@googlegroups.com
To unsubscribe fr
By the way,
I'm mainly looking for projects, but I'm open to full-time work as
well. I'm in the Bay Area, but willing to relocate. Here is my
updated resume in case anybody is interested:
http://docs.google.com/Doc?id=dfzm4jm5_0c8xs2cgx
David :)
On May 1, 2:05 pm, David Beckwith wrote:
> He
Matt Jones wrote:
> Yep, you're seeing an incompatibility - I think 2.1.2 was the first
> version of Passenger that worked with Rails 2.3.2.
>
> --Matt Jones
Yes, you're right.
I complained to DreamHost and surprisingly they moved my account to a
newer server which has Passenger 2.2.1.
Thanks
Yep, you're seeing an incompatibility - I think 2.1.2 was the first
version of Passenger that worked with Rails 2.3.2.
--Matt Jones
On Apr 30, 1:11 pm, Sam Kong wrote:
> Hi,
>
> I'm using restful_authentication on rails 2.3.2.
> It works find on my local machine which has passenger 2.1.2.
> But
The hard coded url fixed the problem. I'll try the stylesheet_link tag
next. I'd really like to understand why the layout works for some
controller/actions and not for others.
Thanks for the help
Dave
On May 1, 12:43 pm, Marnen Laibow-Koser wrote:
> Matt Harrison wrote:
>
> [...]
>
> > I'd try
Thanks Colin. I looked into it more and found a bug. I can get to the
resetpwd action in the Users controller now. Chris's routing change
suggestion resolved the issue.
-S
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message
http://is.gd/vXH3
Cheers--
Charles
On Fri, May 1, 2009 at 4:05 PM, David Beckwith wrote:
>
> Hello,
> Where can I find Ruby on Rails work? I have about 2 years of
> experience with Ruby/Ruby on Rails and I've taught classes in Ruby and
> Ruby on Rails. I just moved back to America from overse
I would like to create a website that will require users to Register.
There will be a three step registration process - the user will
click "Register" on the home page, and that will take them to
Registration Page 1 where they will enter all the required fields
(name, email, user ID & password,
These tutorials will show you how to set up a user
registration/authentication system with Authlogic, and then to set up a
password reset system.
It'll give you a good start on a RESTful setup, which you can then tweak
however you like.
http://github.com/binarylogic/authlogic_example/tree/mas
Hello,
Where can I find Ruby on Rails work? I have about 2 years of
experience with Ruby/Ruby on Rails and I've taught classes in Ruby and
Ruby on Rails. I just moved back to America from overseas, so I don't
really know where to find work. Does anybody have any ideas? Thank
you,
David :)
Morgan Morgan wrote:
> now i'm assuming this is rails wanting to be nice and cache stuff to
> make it quicker... but it's annoying the hell out of me.
I'm guessing you're assuming wrong here. Rails has nothing to do with
it. It's going to be the client's browser that caches the file, unless
the
Gavin Morrice wrote:
> Hey all - just wanted to check if I'm going about this in the right
> way...
>
> I have class User, user has a password
>
> Password should only be valid if it's between 6 and 16 chars in
> length.
Fist of all, don't limit the length of a user's password. At least not
do
Okay I solved that, partially. I needed to pass :locals => {:form =>
form} from my view when first rendering the partial. The problem is,
though, that on the :onchange event, the partial is rendered through the
controller, so I can't pass :locals from there. So after the :onchange
event, I
Hi,
I've never done what you are trying but my understanding is that every
time that your code executes it opens a new connection to the
database. I just looked at establish_connection's code and it doesn't
seem to check if there is an existing connection matching the
parameters passed. I could b
Vipin wrote:
> How can i disable the auto-increment for a primary key data type. The
> purpose of using primary_key data type is using different name for
> primary key. But we still want to use all the properties of "id"
> except for auto increment part.
Given that it looks to me like you want t
Are you sure it is not correctly going to UsersController#resetpwd then
getting redirected by the action?
2009/5/1 Sj Tib
>
> That was a useful link Chris - thanks for sharing. I changed the entry
> in routes.rb as you suggested to
>
> map.resources :users, :collection => { :resetpwd => :get }
gaurav v bagga wrote:
> Hi,
> can you verify parameters to collection_select. Are they proper?
>
> Regards,
> gaurav
>
> On May 1, 2:19�pm, Bradley Herman
After doing some testing, it would appear Rails is just having a major
problem with my partial. The parameters are fine, but something ab
Frederick Cheung wrote:
> On May 1, 7:55�pm, "Ahad L. Amdani" wrote:
>> Oh, well then. That's terrible - so I'll see it when I first receive a
>> reply?
>>
> you can check on the google groups page to see if it has appeared yet.
> Message approval is only to do with keeping out spammers, but if i
Hi ,
Hope you are doing good !!
I have requirement for Ruby on Rails Developer, Let me know if you are
interested on it. Kindly send me the updated resume along with contact
details and salary for the following position ASAP.
Job Description:
Ruby on Rails Developer
Location: NYC, NY
Term: Dir
On May 1, 7:55 pm, "Ahad L. Amdani" wrote:
> Oh, well then. That's terrible - so I'll see it when I first receive a
> reply?
>
you can check on the google groups page to see if it has appeared yet.
Message approval is only to do with keeping out spammers, but if it's
at a time when I'm in bed o
Oh, well then. That's terrible - so I'll see it when I first receive a
reply?
On May 1, 2:50 am, "Simon Macneall" wrote:
> You won't see your message.
>
> gmail has this lovely thing where it sees your message in the outbox, so
> doesn't show you it when it is received again from the list.
>
>
On May 1, 2009, at 9:32 AM, Chris Bird wrote:
> has_one does indeed mean has a maximum of one. The belongs_to side
> means has exactly one.
>
> I don't know (because I never tried it) what happens if you put
> "belongs_to on both sides - i.e. make something exactly 1:1. Obviously
> not relevant in
On May 1, 5:55 pm, Stephen Fagan
wrote:
> I want to link up 3 tables to list all members of a particular group. My
> code (which is wrong) looks like this:
>
> @group_members = Membership.find( :all,
> :joins => ['FROM memberships INNER
> JOIN groups ON members
Hi Matt-
Thanks much -- qualifying fixed it.
<%= f.select( :title, Contact::TITLES, { :prompt => true } )
%>
Really appreciate the quick tip-
--Jeff
On Apr 26, 8:24 am, Matt Jones wrote:
> The containing module for the ERB code isn't the model or the
> controller, it's part of ActionV
cookies[:key] = {:value => value, :expires => 3.weeks.from_now}
On May 1, 9:41 am, etienne wrote:
> hi everyone,
>
> i can't seem to find any help online for this. I'm using
> CookieStore. What I can't seem to figure out how to do is set the
> expiration for the cookie set by CookieStore. Rig
Hello -
Sorry if this is long - I'm erring on the side of giving too much
information rather than too little. Hopefully it'll appear organized and
easy to skim.
In a nutshell, I'm making a site where people can put together online
tutorials. Each tutorial is broken up into sections, and there ar
I am having the exact same issue.
Any solutions yet?
On Apr 7, 11:43 pm, Greg Donald wrote:
> On Mon, Apr 6, 2009 at 5:00 PM, Frederick Cheung
>
> wrote:
> > I think version.h disappeared in ruby 1.9. Looks like it's trying to
> > build a version of the mysql gem that isn't compatible with ruby
Hi Ruby on Rails: Talk,
Thank you so much for your time and consideration. I am a graduate
student at Georgian Court University (Lakewood, NJ) conducting a study
titled “Who Are We?” examining the relationship between social
identity and psychological well-being. Your group, Ruby on Rails:
Talk,
hi everyone,
i can't seem to find any help online for this. I'm using
CookieStore. What I can't seem to figure out how to do is set the
expiration for the cookie set by CookieStore. Right now it leaves
that field blank, meaning that the cookie expires when the browser is
closed. The context
I don't know the answer but something that jumped out at me was that you
don't have a space in between "group.idINNER". You may want to try it
with something like
:joins => ['FROM memberships INNER JOIN groups ON memberships.group_id=
group.id' + ' INNER JOIN users ON memberships.user_id=users
Do you have a space between group.idINNER JOIN users?
In your code and log file, it looks like the space is missing.
On May 1, 9:55 am, Stephen Fagan
wrote:
> I want to link up 3 tables to list all members of a particular group. My
> code (which is wrong) looks like this:
>
> @group_members = Me
That was a useful link Chris - thanks for sharing. I changed the entry
in routes.rb as you suggested to
map.resources :users, :collection => { :resetpwd => :get }
When I print out the possible routes in script/console I get the
following (relevant subset)
GET/users/resetpwd/
I want to link up 3 tables to list all members of a particular group. My
code (which is wrong) looks like this:
@group_members = Membership.find( :all,
:joins => ['FROM memberships INNER
JOIN groups ON memberships.group_id= group.id' + 'INNER JOIN users ON
member
I have 2 polymorphic models that I am trying to relate to each other:
class Company < ActiveRecord::Base
belongs_to :business, :polymorphic => true
has_many :people
has_and_belongs_to_many :mops
end
class Person < ActiveRecord::Base
belongs_to :contactable, :polym
Matt Harrison wrote:
[...]
> I'd try using an absolute path i.e: "/css/menu.css"
>
> HTH
>
> ~Matt
Better yet, use stylesheet_link_tag -- that way Rails will construct the
proper path and save you some typing.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via
well...
I assume you're using a MySQL DB; If that is the case you actually
need to specify specific options when connecting to the server to
allow multiple queries in one statement. I've honestly never played
with that before, but
http://dev.mysql.com/doc/refman/5.0/en/c-api-multiple-queries.htm
dwormuth wrote:
> I have a strange problem with my layout file. I think it may be due to
> nested partials, but removing the deepest nested partial call does not
> clear the problem.
>
> I have an application wide layout (application.html.erb) that works as
> expected - loads images, javascript,
On Fri, May 1, 2009 at 8:30 AM, djolley wrote:
> A lot of bytes have been spilled over the issue of how much logic
> should be put in the view. I am now coming to the conclusion that
> it's a whole lot less than I had previously thought. In fact, I am
> fast becoming of the opinion that it's p
^^ I should add
Is it possible to do this in one SQL query?
Thanks
On May 1, 4:55 pm, Gavin wrote:
> Hey all
>
> Suppose Post has many comments.
>
> Is it possible to call Post.all and order them by the number of
> comments each has without adding a column 'comments_count' to the Post
> table?
E. Litwin wrote:
> Just to clarify - are you setting session[:user_id] in the user.login!
> (session) call?
> The other suggestions on handling a nil session[:user_id] (i.e. using
> find_by_id) are the appropriate ways to handle the error.
>
> Eric
>
> On Apr 30, 12:09�pm, Stephen Fagan
Yes,
Stick on your resume the URL of your github or open source projects'
page and rails related blog, that's worth any certification.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
Hey all
Suppose Post has many comments.
Is it possible to call Post.all and order them by the number of
comments each has without adding a column 'comments_count' to the Post
table?
If not, can anyone think of a nicer way of doing it this than:
def Post.order_by_comments
posts = Post.all
You don't want to cram too much into your controllers either. The design
philosophy is "skinny controllers, fat models."
http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You receiv
> This sounds messy. Views should be dumb data displayers, not making
> decisions about whether to redirect or not. What are you trying to
> do ?
You know what, Fred? You're absolutely right. I thought about it
over night and that's the exact conclusion I came to. If one feels a
need to re-dir
That worked, thanks. I thought unfreeze was doing it, but I did not
check and it turns out I needed to have super user permission.
On May 1, 10:22 am, Colin Law wrote:
> Check there is not a rails folder in vendor. If there is, delete it.
>
> 2009/5/1 ih
>
>
>
> > I'm having trouble upgrading
Check there is not a rails folder in vendor. If there is, delete it.
2009/5/1 ih
>
> I'm having trouble upgrading my app from rails 2.2.2 to 2.3.2. I've
> successfully installed the 2.3.2 gem (when I type 'rails -v' i get
> "Rails 2.3.2") and I've changed the environment.rb file to use 2.3.2,
>
Has anyone encountered this error using Graticule &
acts_as_geocodable?
ActiveRecord::UnknownAttributeError (unknown attribute: precision):
(__DELEGATION__):2:in `__send__'
(__DELEGATION__):2:in `with_scope'
app/models/listing.rb:113:in `advanced_find'
...
Here is line 113 in listing.rb:
Or you o can take a practical approach, write software, show results!
Perhaps contribute to the rails community with a plugin or something.
Cheers, Sazima
On Apr 30, 11:16 pm, shusseina wrote:
> Is there any Ruby on Rails certification available for RoR developers?
>
> I am thinking of getting
On 1 Mag, 02:23, Andrew Bloom wrote:
> Very strange. Have you checked postfix at all? I use ExceptionNotifier
> in 2.3 with no problems at all.
yep, there nothing in the log, as rails never pass it to send the mail
at the moment of the error (a simple find with a wrong id which thrown
an excepti
I'm having trouble upgrading my app from rails 2.2.2 to 2.3.2. I've
successfully installed the 2.3.2 gem (when I type 'rails -v' i get
"Rails 2.3.2") and I've changed the environment.rb file to use 2.3.2,
but 'rake rails:update' doesn't seem to do anything and when I try to
run script/about it s
I've tried a 307, which seems to work with Firefox (with a warning, as
you say), but Safari (4) seems to miss the re-post. I've not checked
IE, as I've not got a copy to hand.
Neil
On May 1, 2:42 pm, Olek wrote:
> > I should add that I want to redirect the user out to the third party
> > with
cd ~
ls -R .vim/
--
.vim/:
autoload doc history plugin
.vim/autoload:
dbext_dbi.vim dbext.vim rails.vim
.vim/doc:
dbext_gpl.dat project.txt surround.txt tags
dbext.txt rails.t
> I should add that I want to redirect the user out to the third party
> with the form too. Essentially I want it to appear to the user that
> they've submitted the form to the third party directly.
You can either use an HTTP 307 response (http://www.w3.org/Protocols/
rfc2616/rfc2616-sec10.html#
has_one does indeed mean has a maximum of one. The belongs_to side
means has exactly one.
I don't know (because I never tried it) wjay happens if you put
"belongs_to on both sides - i.e. make something exactly 1:1. Obviously
not relevant in this case, but I could see situations where for
performa
> I am getting 'MySQL gone away'
> error while creating a new object of this subclass.
Refactor the common code between your tabled and table-less *models into a
module, and let both models include that module.
*yes, it's still a model, even if it has no DB persistence.
--
Phlip
http://
Anup Isvanlal wrote:
> I have an assesment to complete, i've done all the pages including
> customer details but i have to create log-in for the customer, could
> anyone help me please.
Install restful_authentication, follow the easy and clear instructions.
Done! :)
http://github.com/technoween
I have an assesment to complete, i've done all the pages including
customer details but i have to create log-in for the customer, could
anyone help me please.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
Hello
This is friendly reminder about the speaker submission
deadline. The deadline is Sunday, May 3 at midnight.
We have extended it one day to give you the weekend
to submit your proposal.
If you plan on submitting a proposal, please use the link below.
We look forward to seeing you at the
omg, it works ! Thank you very much !
--
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@goog
On May 1, 1:20 pm, Sergio Footenko
wrote:
> Hello.
>
> I have read all great documentation which recomended me at this forum,
> thanks, it is really very good start for my.
>
> Now I try to create blog. I have one problem, pages looks very bad if
> many than 40 items on one page displayed =)
Hi all,
I just installed whiteList and sanitize_params plugins to get rid of
with some bad html tags .
Put in my environment.rb:
config.plugins = [:white_list, :sanitize_params, :all]
and in application.rb:
before_filter :sanitize_params
add ok tags to config/initializers/whitelist_conf.rb
On Thu, Apr 30, 2009 at 07:16:45PM -0700, shusseina wrote:
> Is there any Ruby on Rails certification available for RoR developers?
>
> I am thinking of getting into RoR development, but would like to get
> certified if possible so I have something to stick on my resume.
No respected Rails certi
Hello.
I have read all great documentation which recomended me at this forum,
thanks, it is really very good start for my.
Now I try to create blog. I have one problem, pages looks very bad if
many than 40 items on one page displayed =) , I think need create
something similar to "next|prev pag
Hi,
I am trying to send bulk sms using sms_client using GSM/GPRS
ANALOGIC MODEM .
Below is the log file
-
MODEM: Toggle DTR 100 Microseconds
MODEM: Toggle DTR 100 Microseconds
MDM_send: Drain required.
WARNING
Hey all - just wanted to check if I'm going about this in the right
way...
I have class User, user has a password
Password should only be valid if it's between 6 and 16 chars in
length.
New user is created if everything is valid and it's stored to the db.
After saving to the database, the pass
On Apr 30, 10:24 pm, "Ahad L. Amdani" wrote:
>
> So, my questions are as follows:
> 1. How do I have the submit button go to the "Set" action defined in
> the practices_controller?
by default this form would submit to the update (if the record
existed) or create (if it didn't) url for that pr
I have a strange problem with my layout file. I think it may be due to
nested partials, but removing the deepest nested partial call does not
clear the problem.
I have an application wide layout (application.html.erb) that works as
expected - loads images, javascript, css etc for my application.
On May 1, 10:38 am, Moodang wrote:
> According to MySQL doc, I must use union and temporary tables.
>
> It seems I have to do something along the line of this:
>
> http://www.ricroberts.com/articles/2007/09/25/mysql-temporary-tables-...
>
> There are cases where I use OR queries quite often. I
According to MySQL doc, I must use union and temporary tables.
It seems I have to do something along the line of this:
http://www.ricroberts.com/articles/2007/09/25/mysql-temporary-tables-and-rails
There are cases where I use OR queries quite often. I am talking about
queries like this "where c
Hi,
can you verify parameters to collection_select. Are they proper?
Regards,
gaurav
On May 1, 2:19 pm, Bradley Herman
wrote:
> I'm trying to create dynamic select menus for my application. I have a
> partial that is rendered by an action in my site controller after an
> :onchange event is tri
Dmitry Sokurenko wrote:
> Definetely it won't work, just because standalone buttons should not
> do anything when javascript is disabled. That's by design.
>
> Dmitry
So it appears. button_to_remote generates the code:
which would not recognise the href. I was lulled by the description in
Definetely it won't work, just because standalone buttons should not
do anything when javascript is disabled. That's by design.
Dmitry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To p
Not sure that the previous solution will work.
If the page is dynamic then, point root to the right controller and
action.
map.root :controller => 'yourcontroller', :action => 'youraction'
If it's static then you'll better think twice if you need it, and if
you realy need then try one of the f
I'm trying to create dynamic select menus for my application. I have a
partial that is rendered by an action in my site controller after an
:onchange event is triggered. I'll post the three pieces of code and
the error I keep getting.
*_models.html.haml*
- if models
= collection_select :model
The profile/(screen_name) path works find on its own. When I try to use
in it the blog controller I get problems.
I defined the profile_for in a helper file and included the helper in
the appropriate controller.
def profile_for(user)
profile_url(:screen_name => user.screen_name)
end
When
Jacob Yong wrote:
> Hello,
> Not sure if anyone can help me here. I have a page which I want to
> make it the index page.
>
> The page is http://www.myweb.com:3000/bin/myindex.mxml.
>
> Yes, you can probably tell it's a Adobe Flex component - myindex.mxml.
> I'm combining Flex and RubyOnRa
Hello,
Not sure if anyone can help me here. I have a page which I want to
make it the index page.
The page is http://www.myweb.com:3000/bin/myindex.mxml.
Yes, you can probably tell it's a Adobe Flex component - myindex.mxml.
I'm combining Flex and RubyOnRails.
My question is: Is there a
On May 1, 7:09 am, Amita Bhatkhande
wrote:
> Hi,
>
> Should every model have an associated table in database? I have a model
> as a subclass of another model class.
not necessarily. For example when using single table inheritance then
a model and its subclasses will share a table, and you can
On May 1, 5:17 am, Eddie Ridwan
wrote:
> Sorry about the previous aborted post.. Here is the full post.
>
> I have a link_to_remote call that works as expected (using Rails 2.3.2):
>
> <%= link_to_remote "-", { :url => { :action => :remove_from_cart, :id =>
> cart_item.product} }, { :href => ur
You won't see your message.
gmail has this lovely thing where it sees your message in the outbox, so
doesn't show you it when it is received again from the list.
caught me out the first time I tried posting :)
Simon
On Fri, 01 May 2009 07:28:04 +0800, Ahad L. Amdani
wrote:
>
> I posted a
On May 1, 6:24 am, doug wrote:
> I'd sure like to be able to insert a redirect_to within a rescue
> clause of a view. Anyone have any ideas how I might be able to do
> that? Thanks for any input.
>
> ... doug
This sounds messy. Views should be dumb data displayers, not making
decis
Is there a way to rewrite the following Model method avoiding
connection.select?
class LineOrder < ActivateRecord::Base
belongs_to :auction
belongs_to :operation
...
def self.amounts_by_year(search)
search_company = ""
if search
search_company = "inner join auctions on
line_orders.aucti
Is there any Ruby on Rails certification available for RoR developers?
I am thinking of getting into RoR development, but would like to get
certified if possible so I have something to stick on my resume.
Thanks
--~--~-~--~~~---~--~~
You received this message bec
Hey all,
I have an n:m relationship between lpl_short_form_apps and
practice_areas. The joining table is called practices. The definitions
are as follows (minus validation/business logic):
LPLSFAs Model:
class LPLShortFormApp < ActiveRecord::Base
has_many :practices
has_many :practice_areas,
I posted a message but I still don't see it posting yet. I was
wondering how long the moderation times are, typically.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this grou
97 matches
Mail list logo