Hi everyone!
I'm working with a new client that was founded in 2013 and was officially
profitable in January, 2016. They have an aggressive hiring plan for the
next 2 years which includes going from 400 people to 1000 globally. They
also plan on going public so this is the last year that sign
Early-stage startup seeking Adv. Ruby on Rails developer to be part of an
EXCITING, NEW website that WILL BE the new benchmark in the job
seeking/recruiting industry - Think about the impact LinkedIN has had on
the business world...this will top that!
We are two of the founding partners, lookin
My home page is http://www.roomposts.com/infos/index,
but request.original_url give me http://roomposts/infos/index
Is this a bug?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails
rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/YlcNIOG9HoMJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Evan Misshula
Doctoral Student (Criminal
Hi Werner,
Any recommendations on work visas for Americans for those of us without an
EU passport?
Thanks,
Evan
On Tue, Sep 25, 2012 at 11:52 AM, powi wrote:
> Ah, forget my previous post, around ~1,5k will go to paying the bills,
> food etc. so it's about 1k staying in your
Installation_Ruby-on-Rails_for_Ubuntu-Linux-Mint_www-mirceagoia-com.pdf
This is what I used. I was able to get it done. I ran into a problem
and I just needed to uninstall and reinstall the gems. Good luck!
Best,
Evan Misshula
On Mon, Jun 4, 2012 at 4:18 PM, Jeremy Walker wrote:
>
>
t; To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
Evan
I would suggest you look at Michael Hartl's free tutorial. It uses Rails 3
and is available at:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:install_rails
Good luck.
Best,
Evan
On Fri, Jul 15, 2011 at 6:43 AM, Sayuj Othayoth wrote:
> Hi,
>
> Can any one ca
I'm trying out inherited_resources and so far so good. However, one
problem I've run into is that it's very difficult to customize
inherited_resource behaviour in subclasses. Looking through the
source I see it uses things like undef_method and class_attribute.
For example, if I have the following
I recently switched from REE to ruby 1.9.2 and I was shocked by how
long it takes for rails to startup. This isn't as much of an issue in
production, but in development and test environments it's almost
unusable because it's killing my workflow.
for example, sometimes I need to run a single test
Hi all. I'm having some trouble with nested routes and duplicate
namespaces.
I have an Article and Advert model, both with an associated
Publication model:
class Article
has_one :publication
end
class Article::Publication
belongs_to :article
end
class Advert
has_one :publication
end
cl
converted
to a new format. Rather than take the app down for 12 hours to upgrade
the existing data I thought it could be upgraded on-access.
Evan
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, sen
> That way you can't save a conversation without assigning it a leader,
> but the leader doesn't have to be saved yet.
Well, that’s where I’m at right now. I’d like to be in a situation where
Conversation validates that it has a Leader and Leader validates it has a
Conversation before either is
Since Merb is effectively merging into Rails and not the other way
around I would suggest Rails. The reality is either way you will
probably have to make significant modifications.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post t
> the new object will only be saved if it
> passed the validations, not that it won't be instantiated in either
> case.
How can I catch and handle a situation where this occurs (the new
object is instantiated, but not saved)?
--
You received this message because you are subscribed to the Google
I have a model “Conversation” and a model “Leader”. A Conversation is always
led by exactly 1 Leader.
I’ve overridden Conversation’s “validate” method to validate the presence of an
associated Leader model.
If I add a similar validation to the Leader model, however, Conversations can
no longer
hi all. I'm developing my latest rails app using a REST style. I've
hit a bit of a problem with context however. Let's say I have an Item
model. I'm using edit/update to handle the processing, but the model
is edited differently depending on the context.
sometimes all I'm doing is changing a 'stat
The documentation on the “create_association” method of the “belongs_to”
association reads:
> create_association(attributes = {})
> Returns a new object of the associated type that has been instantiated with
> attributes, linked to this object through a foreign key, and that has already
> been
This didn't seem to fix the error for me. I still get 'uninitialized
constant MysqlCompat::MysqlRes'
Kyle Fox wrote:
> To fix this, specify ARCHFLAGS when you install the 'mysql' gem:
>
> sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-
> config=/usr/local/mysql/bin/mysql_
On Jul 21, 11:44 am, karthik k wrote:
> Hi
>
> I am new to ruby on rails
> I need to know one thing
> Is there any way to externalize all the error messages in one file and
> access
>
> --
> Karthik.k
> Mobile - +91-9894991640
Do you mean the error messages from a model instance? You can just us
e error message. However, this is going to get messy when I
translate my app into multiple languages.
Does anyone know of a way to determine which validation caused a
specific error?
thanks
Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Michael Madrid wrote:
> I just upgraded to 2.3.2 on Windows 7 and am getting the error. Using
> file system gives a different error Unable to create directory, and
> memcached won't install. Not sure what to do.
I've seen this problem in 2.3.2 and now in 2.3.3. The above mentioned
solution d
timeout policy.
At present we are forced to re-write those validations in a safe way.
Thoughts? Thanks for any advice or consideration.
http://dev.rubyonrails.org/ticket/8811
-Evan Worley
--~--~-~--~~~---~--~~
You received this message because you are subscribed
timeout policy.
At present we are forced to re-write those validations in a safe way.
Thoughts? Thanks for any advice or consideration.
http://dev.rubyonrails.org/ticket/8811
-Evan Worley
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Sorry just replied to you directly and not to the group..
Use the defined? method like...
<% if defined?(child_index) && child_index %>
-Evan Worley
On Jul 16, 9:46 pm, Rodrigo Dominguez wrote:
> what about using
>
> <% unless child_index.blank? -%>
> D
I have a URL parameter that has special characters on it, so I do URL
encoding as such:
my_url(:email => CGI.escape("someemail+extens...@mail.com")
Now, I would expect to call a CGI.unescape(params[:email]) on the
action receiving this parameter, and this is true according to my
functional tests
In a model are there any methods that are called before providing
access to the model?
I'm exploring ways to enforce privileges in my app. Wondering if I can
define some sort of "before" method in the model to prevent read
access to the model unless certain conditions are true.
Is it possible to define a model that is not backed by a database
table and still relate other models to it? Will relations between
instances of these models persist?
For instance, say I have a Cat model that does not inherit from
ActiveRecord and an Owner model that does. Can I assign a particul
og/2008/08/rails-authorization-plugins/
Declarative Authorization plugin – well-designed authorization system
that abstracts authorization declarations from application code
http://github.com/stffn/declarative_authorization/tree
Evan
--~--~-~--~~~---~--~~
You received th
no generators or systems requiring
manual code updating after initial install)
We are already using authlogic for authentication.
Thanks.
Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
Andrew,
Changing the scope of validates_uniqueness_of to product_id solved my
problem. Thank you.
Evan
On Feb 21, 8:32 pm, Andrew Bloom wrote:
> I'm not sure I'm 100% clear, but it sounds like you are saying that a
> Repair may only have one combination of Part/Product
Andrew,
Your last paragraph helps clarify it a little bit. I think you are
correct in that I am chasing the wrong thing. I think that stems from
not fully understanding the scope option of validates_uniqueness_of.
The documentation for it is not clear.
Evan
On Feb 21, 8:32 pm, Andrew Bloom
Can you paste the lines where that error is raised?
--~--~-~--~~~---~--~~
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
I just tried this code and was still able to create records with
different levels for the same part/product combination.
class RepairClass < ActiveRecord::Base
belongs_to :level
belongs_to :product
belongs_to :part
validates_presence_of :level_id, :product_id, :part_id
validates_unique
So I could create a unique index consisting of product_id, part_id. Is
it possible to then create a unique index consisting of level_id and
the other index? I am using MySQL currently.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
My join model is "Repair class." Its attributes are:
- id (PK)
- level_id (FK)
- product_id (FK)
- part_id (FK)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, sen
o the
same part/product combination which does not happen in the real world.
What's the best way to proceed?
Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To pos
ou're running:
> ruby 1.8.6.114 at
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
> rubygems 1.3.1 at /Users/evan/.gem/ruby/1.8, /Library/Ruby/Gems/1.8,
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
... So I'm
For those curious, I solved this problem by abandoning the
drop_receiving_element helper and writing my own Ajax.Updater (see
Prototype documentation) code on the page. Ajax.Updater takes a
"method" option which allows you to specify get, post, put, delete,
etc.
On Nov 2, 8:16 pm, Ev
Is it possible to specify which HTTP method to use in the
drop_receiving_element helper? I'm trying to follow REST best
practices in my app. On one page I have the user drop an icon into an
area which calls the "new" representation of a particular resource.
However, drop_receiving_element sends th
Thanks, Mark.
--~--~-~--~~~---~--~~
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 this group, send email to [EMAIL P
Mark,
Thanks for the information about automatic validations in has_many-
related models. Can you point me to documentation on this? I'd like to
learn more about how it works.
Thanks.
Evan
--~--~-~--~~~---~--~~
You received this message because yo
Daniel,
I did not notice that warning about validates_presence_of before.
Thanks for bringing it to my attention. Your thought process helped me
understand better what is going on.
Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
er console.
Why is this object not validating? Driving me nuts.
Thanks.
Evan
--~--~-~--~~~---~--~~
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
lots of users you may be better off
writing a custom SQL statement and letting your database do the
counting.
Evan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to
Do you know of any great books, references or other works that teach
data modeling? I am especially interested in learning more about
resolving complex relationships.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ru
I guess the question I was really getting at is how can I validate the
presence and association of both objects before they are saved? I feel
more confident when there is code in the model itself to ensure the
integrity of the data rather than depending on each programmer to
place every save in a
Oh wait. I think I just got it. Start a transaction, save the primary
object thus getting the id, save the secondary object, end
transaction. Right?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk
Even with transactions can I save the object containing the foreign
key without saving the primary object first? In other words, can I
save the object that requires the foreign key to be present if I don't
have the foreign key because the primary object has not yet been
saved, thus generating an i
Hello.
I have an object which is related to a second object through has_many.
The second object (obviously) is related to the first through
belongs_to. I want to ensure that neither object is saved to the
database without the presence of the other. How can I do this?
Thanks.
Evan
ll of the attributes of the superclass
as well as those defined in the migration file generated for the
subclass. If this is expected behavior how can I map the columns of
the subclass' table to the subclass objects?
Thanks.
Evan
--~--~-~--~~~---~--~~
You rec
51 matches
Mail list logo