It might be *possible* but I would strongly suggest rethinking this.
What is going wrong with your DB that its built-in caching is insufficient?
Have you exhausted your performance-tuning options in the DB layer?
Have you measured a significant performance problem in the first place?
Do you
I recently did kind of an insane thing and wrote a gem that monkeypatches
Rails to support PostgreSQL enums:
https://github.com/alassek/activerecord-pg_enum
It's similar to schema_plus_enums but substantially more comprehensive.
One of the things I did was support dumping enum definitions to
This solved my problem. Thanks!
On Sunday, February 25, 2018 at 12:46:08 PM UTC-5, Robert Phillips wrote:
>
>
>
> On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote:
>>
>> On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips
>> wrote:
>>
>> > Is there a command line ERB?
>>
>> I
days ago. Boooya.
updating bullet to 5.7.1 fixed this
On Wednesday, January 17, 2018 at 11:53:25 AM UTC-8, Adam Stockland wrote:
>
> I've upgraded to rails 5.2 and am implementing ActiveStorage.
> ActiveStorage uses mutool for PDF processing. I have successfully
> installed mu
I've upgraded to rails 5.2 and am implementing ActiveStorage.
ActiveStorage uses mutool for PDF processing. I have successfully
installed mutool locally using homebrew.
mutool is a bit confusing.
rails docs claim to require "mutool",
homebrew installs "mupdf-tools",
.
As it is now, the html tags are escaped. Is there a simple way to allow
unescaped HTML into a view so that I can create a formatted post?
Thanks,
Adam
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from
Hi All.
I have designed a Social Local Mobile App
I built the Prototype on Proto.io
I am looking for Someone who is a talented App developer who can build this
as a quality App and has a track record in doing this
I also need someone who has the time now to dedicate to this project
and finally
A couple of months ago I made a gem to help with string interpolation in
Rails. If you ever find yourself needing to allow users to insert variables
into strings which they provide, this gem may be quite useful to you. You
basically define a list of variables which can be inserted on a model
Hello,
We are experts in the field of outsourcing and we all know how to run
projects remotely. The team of developers encodes ripped from our office in
Poznan established customers, most of which come from Scandinavia. The
secret of smooth cooperation is based on well-defined project
Panzer Technologies is well prepared to provide the best staffing
solutions and when it comes to ruby on rails development, it stands out
as a distinguished company, with required expertise in ROR.
To get more information please visit our website @
http://www.panzertechnologies.com/IT/ror.php
Hi,
Just starting out with Rails so bear with me.
I was working on a test app and everything was going great. However now
when I run rails server and none of the changes to the controller files
are reflected.
If I make changes to HTML files, those are reflected. And yes, I'm sure im
in the
Hi Ruby users. We are working directly with this hiring manager in
Philadelphia PA for a permanent opportunity to join his team of passionate
developers who are all about open source technologies. This is an RD
minded work environment where the manager is only looking for people who
love to
Hi all, I looking for best company on Ruby on Rails Development in
India. Have any good companies in India please let me know.
--
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 unsubscribe from
Hi all, I looking for best company on Ruby on Rails Development in India.
Have any good companies in India please let me know.
--
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 from
Hi guys. I just finished writing up my analysis of the gems used in the
2013 Rails Rumble:
http://www.dwellable.com/blog/Rails-Rumble-Gem-Teardown
The Rails Rumble organizers were kind enough to let me look at the Gemfiles
submitted by 221 teams. I spent a couple of days digging into the data.
I'm working on an idea and I was wondering if it was even possible...
We are frequentlly tweaking images as the style of our website changes.
Usually we need to slightly alter the color of a layer in the image so that
it matches our css. This means editing an image in photoshop, making the
There's a good chance you've already seen this, but just in case not...
Tickets for Ruby Manor 4 are now available, happening on the 6th of April
2013 in London, UK.
Full details and ticket info: http://rubymanor.org/4/
We'd love to see you there.
All the best,
- James
--
You received this
I really love the simple-navigation gem but there are some problems. My
configuration file is structurally identical to my routes file. That
redundancy is bad enough *but* if I navigate to a url that
simple-navigation can't catch, it fails completely.
So I'm attempting to auto-generate my
The problem is solved!
see
http://stackoverflow.com/questions/14029119/installing-ruby-1-9-3-in-michael-hartls-ruby-on-rails-tutorial/14085987#14085987
On Friday, December 28, 2012 1:30:05 PM UTC-5, Adam Zerner wrote:
I'm working on Michael Hartl's ruby on rails tutorial
http
/openssl.certs.log
And this is what happens when I try what it says...
Adam-Zerners-MacBook-Pro:~ adamzerner$ rvm reinstall all --force
Adam-Zerners-MacBook-Pro:~ adamzerner$
some other information...
I don't see a .rvm folder under adamzerner, so I can't read what it tells
me to (not that I would
Nice to see I'm not alone in the world of R0R on Cygwin :-)
I got it working with latest Ruby release. Everything on my end works
just fine. Here's what worked for me: Make sure the ruby that you have
installed /with/ cygwin (during the setup.exe) is not interferring with
the ruby installed in
Greetings all,
After being a c# programmer I wanted to get my feet wet in RoR. Good
stuff. I'm running a cygwin (linux emmulator - sort of on Window 7). I
have ruby installed:
$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [i386-cygwin]
I have rails installed:
$ rails -v
Rails 3.2.9
Compressing a file should not be contributing to errors - it's likely
your production environment settings may have altered the environment
enough to produce these errors. Could you describe the problem in a
bit more detail so we can better guide you?
On Apr 9, 8:03 am, Marko Anastasov
Could you explain this HelpDesk gem a bit more?
On Apr 5, 2:02 pm, Lupu Alexandru Emil gang.al...@gmail.com wrote:
Hello!
What i do need would be a nice HelpDesk gem. I haven't seen one that i
could just install it ... and work ...
I need it, so, i am gonna start coding... If there are
I've started to actively contribute to the guides. One thing that's always
bothered me is that some of these guides are works in progress and have
been WIP since I started doing rails way back in 2006.
Here are the guides currently marked as WIP on guides.rubyonrails.org
1. ActionMailer
Cheers Pete, I ended up using your solution. Cheers everyone.
--
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
Hola,
Just wondering if rails will allow me to have one model belong to
another model via 2 foreign keys in the same table, not just one?
So like this...
Class Pair
belongs_to :individuals, :foreign_key = individual_a
belongs_to :individuals, :foreign_key = individual_b
end
Class
This is the content from TinyMce so the user can visually edit his
page content.
On 19 Lut, 21:19, Colin Law clan...@googlemail.com wrote:
On 19 February 2012 20:08, Adam anlauf.a...@gmail.com wrote:
Still top posting I see, much better to put your reply inline as I
suggested previously
Thanks for the tip I'll check that out
On 18 Lut, 14:32, Colin Law clan...@googlemail.com wrote:
On 18 February 2012 11:20, Adam anlauf.a...@gmail.com wrote:
Hello, recently on one of y sites i have a weird ID problem one
editing some pages.
After edit I get an The page you were looking
I've checked the http request but cannot find anything that could do
this. I'm also passing a lot of html could it be the fault?
I'm using the 3.0.1 gem of rails.
On 18 Lut, 14:32, Colin Law clan...@googlemail.com wrote:
On 18 February 2012 11:20, Adam anlauf.a...@gmail.com wrote:
Hello
...@googlemail.com wrote:
On 19 February 2012 18:05, Adam anlauf.a...@gmail.com wrote:
Could you not top post please, it makes it difficult to follow the
thread. Insert your reply at appropriate point(s) in previous
message. Thanks.
I've checked the http request but cannot find anything that could
Sorry for posting so much, but I've tried to remove the html content
from the page( html_body param in log) and the error disappeared so I
think it has to do something with the html. But still is the question
what...
On 19 Lut, 21:08, Adam anlauf.a...@gmail.com wrote:
It should have been a lot
Hello, recently on one of y sites i have a weird ID problem one
editing some pages.
After edit I get an The page you were looking for doesn't exist.
error.
The Id of the editing page is 93 but in log files I have
ActiveRecord::RecordNotFound (Couldn't find Page with ID=403):
Always save time in UTC.
You can add an additional string field if necessary that contains a
string of the time zone it came from.
--
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
Qas Wm wrote in post #1008599:
Hi,
I a trying to integrate WePay with oauth but I have next to nothing
experience with oauth and need help and guidance in completing this
task.
Does anyone have any pointer or sample they can direct me to?
Checkout the wepay-rails gem:
You want to use Nested Associations, which are covered here:
http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
On Dec 1, 12:28 am, chandrakant jain ckjai...@gmail.com wrote:
Hi all
I am using four models user, member, unit, society
I have linked member, unit and
Hi all,
Apologies if you've already seen this, but you may wish to know that Ruby
Manor 3 (Ru3y Manor) has been announced for the end of October 2011[1].
Ruby Manor is a fully-fledged but low-cost and aggressively-open conference
for anyone interested in Ruby or Ruby-related topics. Our
in the table, rather than fix
this I feel there is probably a better way to retrieve the data.
I need to select the blogs in separate calls, for example
@blog_post.latestpost, @blog_post.secondlatestpost
Thanks, Adam
--
You received this message because you are subscribed to the Google Groups Ruby
I always wondered, is there a way you can change the f.label at a
model label so regardless of where its used it always has the updated
label? is it somewhere in the localization file? or does this just
indicate for rails to have a best guess at what it is. I tried
defining them in a language file
I just released the Teleport gem - easy Ubuntu server setup via
teleportation. Teleport sets up servers by teleporting to the machine
and running itself there. It installs Ruby, then follows the
instructions laid out in your Telfile to customize the server.
https://github.com/rglabs/teleport
The
Hi -
I'm stuck on something 'simple' - custom mail header. Seems this
should work but can't get it to come out correctly. Any help
appreciated:
http://pastie.org/private/skedkstanvm8hpzr8ounia
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
/Library/Formula/mysql.rb
Note the specific commands:
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir=$(brew --prefix
mysql) --datadir=/usr/local/var/mysql --tmpdir=/tmp
mysql.server start
mysql -uroot
Just copy paste them from the instructions.
Adam Stegman
--
You received
On Jun 6, 2011, at 2:46 PM, Rodrigo Ruiz wrote:
Hi, I'd like to know how can I make a link to a method. I mean, not a link
that would normally render a new page, but something that looks like a link
(a blue word) but triggers one of my class methods like show a photo at the
right side of
It's not defining it on Class, it's defining it on the Object class. Every
class inherits from Object, so every class inherits that class method.
If you define it on a different class, it will belong to that class and its
descendants:
String.instance_eval do
def test_method
test
end
to be
removed from their gemspecs and new versions released.
Adam Stegman
On May 13, 2011, at 10:12 AM, Mohammed Niyas wrote:
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
Are you using helper methods to output the HTML? If so, you can mark them as
safe by adding
safe_helper :helper_method_name
in the helper file. Then I believe they won't be escaped.
Adam Stegman
On May 12, 2011, at 10:26 PM, dlamet wrote:
I have a legacy application I ported from Rails 2.x
Colin Law wrote in post #995944:
A cautionary note, a new version of Ubuntu (11.04) has just been
released, which has made major changes to the UI and still has some
teething issues. I would advise an Ubuntu newcomer to install 10.10
for the moment (or even 10.04, the so called Long Term
The general rule is: acceptance tests are for your customers, unit and
functional tests are for you.
Well-written acceptance tests prove that users can complete entire,
potentially-complicated interactions and see the right thing on the
screen. If you are developing for a customer or with a
Can you please show the database layout you have in mind that this
would map to?
The normal way would be:
User (belongs_to :address)
- id
- address_id
Address (has_many :users)
- id
If you want the user to not know about the address, you could do:
User
Addressable
- address_id
-
I'd like to strongly disagree. While csv is not a great way to send
objects back and forth, it is a fantastic way to give reports to
users, since they can play around with them in Excel.
On Mar 5, 9:03 am, marco marcofog...@gmail.com wrote:
All right, but, before, why would you do that? I think
Robert Walker wrote in post #980944:
Fearless Fool wrote in post #980885:
Okay, first some clarifications:
Regardless of Ruby's somewhat odd implementation; (1.0 / 0.0) is not
equal to infinity.
Oy!
Now you've stepped in it.
),
:fs_curriculum_country =
FsCurriculumCountry.find_by_country_id(address.country.id)
)
On Jan 25, 3:23 am, adam adam.elemen...@gmail.com wrote:
I forgot to add -
this is only an issue with Spork and Cucumber. Rspec and Spork run
fine, and before I got Spork working (I think
be received with much gratitude!
Thanks
Adam
On Jan 25, 1:36 pm, adam adam.elemen...@gmail.com wrote:
OK - solved this issue finally.
I used 'find' instead of the association:
def create_fs_parent_profile
self.fs_parent_profile = FsParentProfile.new(
:state = address.country.name
This was just me being dumb. The trick is to add
gem 'oauth', '0.4.4'
to my Gemfile and THEN run
bundle install oauth
Doing it in the other direction is a bundler no-no.
On Jan 24, 5:39 pm, Adam Cataldo adam.cata...@gmail.com wrote:
Hi Folks,
I'm having trouble using the oauth gem in rails
Thank you - however that code it already in place..
On Jan 23, 5:29 pm, Arailsdemo A. li...@ruby-forum.com wrote:
Try adding this to your spec_helper.rb
Spork.each_run do
require 'factory_girl_rails'
end
adam wrote in post #976883:
Strangely - I am not getting this error when running
definition is as follows:
Factory.define :valid_parent, :class = Parent do |p|
tp.address { Factory.create(:address) }
end
If anyone can shed some light on this would be much appreciated!
Thank you
Adam
--
You received this message because you are subscribed to the Google Groups Ruby
end
end
Spork.each_run do
require 'factory_girl_rails'
Dir.glob(File.join(File.dirname(__FILE__), '../../spec/factories/
*.rb')).each {|f| require f }
end
On Jan 25, 2:42 am, adam adam.elemen...@gmail.com wrote:
I am having a strange problem with FactoryGirl, Spork and Cucumber.
It seems
/commands/console.rb:8:in `start'
from /Users/acataldo/mentors/oauth-plugin/ruby/1.9.1/gems/
railties-3.0.3/lib/rails/commands.rb:23:in `top (required)'
from script/rails:6:in `require'
from script/rails:6:in `main'
Any advice on how to get rails to notice oauth?
Thanks!
Adam
Thanks guys,
got autotest running now with the hack, working like a charm - now I
remember that sometimes I do actually enjoy coding! :)
Now to get it working properly with Cucumber and Factory Girl
(uninitialized constant Factory) ...
On Jan 21, 7:12 pm, Arailsdemo A. li...@ruby-forum.com
Hi everyone. I've just released my first two gems, drifter and
drifter-rails. Drifter is a simple geocoding library for ruby and
drifter-rails provides distance based finders for ActiveRecord 3
(supports postgresql and mysql at present). Each project#s readme
file has usage instructions and
Thank you, but I still get the same error - uninitialized constant
FactoryGirl (NameError)
I have also posted on the FactoryGirl list:
https://groups.google.com/group/factory_girl/browse_thread/thread/8de21a97486?hl=en
(see bottom of the thread)
Regards
Adam
On Jan 22, 4:05 pm, Peter
Strangely - I am not getting this error when running seperate
features, only when running just cucucmber --drb
On Jan 23, 6:39 am, adam adam.elemen...@gmail.com wrote:
Thank you, but I still get the same error - uninitialized constant
FactoryGirl (NameError)
I have also posted
I am working on my first Rails BDD project with extensive tests since
starting out with Rails a few years ago.
Running RSpec or Cucumber is really slow. I'm using Rails 3 and RSpec
2.
To run one model spec with only 5 tests takes almost 1 minute! When it
finishes it says it took only 0.9 seconds
Ok - please excuse me - it seems that the info on the Spork readme is
out of date... the Rails 3 branch has been merged. just installed and
ran a test... wow... 1 minute had become 1 second!!
:)
On Jan 20, 1:06 pm, adam adam.elemen...@gmail.com wrote:
I am working on my first Rails BDD project
to an
HTML checkbox.
So simply change your factory line to this:
Factory.create(:valid_user, :tc_check = 1)
Luke
On 2011-01-18, at 12:57 AM, adam wrote:
Thanks, but I have tried that - I get the same result.
Validation seems to get called on build as well as create.
On Jan 17, 9:20 pm
Thanks, but I have tried that - I get the same result.
Validation seems to get called on build as well as create.
On Jan 17, 9:20 pm, Luke Cowell lcow...@gmail.com wrote:
On 2011-01-17, at 9:51 AM, adam wrote:
It falls over on validation - Validation failed: Tc check must be
accepted
Marnen Laibow-Koser wrote in post #975678:
I suspect you are wrong. Linux is a great server OS, but most Rails
developers I know (myself included) prefer Mac OS (which is BSD, not
Linux) as a desktop environment.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
such controllers?
--
Thanks,
Adam Warski
--
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, send
obvious at first. But you just need a way to tell
Rails to look beyond the first / when finding the controller name.
Thanks,
Adam
--
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
hmm, I've played around a bit and it somehow started to work well I
guess thats good just wish how I've done that so I could setup it on
the server properly ;)
On 11 Lis, 07:56, Gautam Rege gau...@joshsoftware.com wrote:
Adam,
I presume you have run the migration that is generated
Yeh i thought about mongrel cluser - I'm just imaging the discussion
with the server admins ;)
On 10 Lis, 13:23, Michael Pavling pavl...@gmail.com wrote:
On 10 November 2010 12:12, Peter Hickman peterhickman...@googlemail.com
wrote:
How much data is being loaded? If you are adding a large
for the manual run.
So i don't know if this is a rail problem or mongrel/this whatever -
but would be very grateful for a help
adam
--
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
well its from an xml file which usually is about ~20MB i found one
solution which isnt very pretty to run the web page on two different
ports using two different instances of mongrel, but I'm looking for
somthing more simple for the end user, so he dosn't have to remember
to login to one webpage
environment. You can use
send_later for this and this requires minimal code change.
- Gautam
@gautamrege
On Wed, Nov 10, 2010 at 6:06 PM, Adam anlauf.a...@gmail.com wrote:
Yeh i thought about mongrel cluser - I'm just imaging the discussion
with the server admins ;)
On 10 Lis, 13:23
:
On Nov 10, 12:55 pm, Adam anlauf.a...@gmail.com wrote:
this sound very interesting I'll check that out
While delayed_job is handy, you will eventually run out of steam if
you only have one mongrel. Others have suggested mongrel_cluster for
running multiple mongrels, you might also want
The rails version is 2.3
I have a relation offers hm prices
In the prices table a have a column named well base_price, + promotion
and last_minute
The prices for one offer can have promotion checked or last_minute
checked indicating that the current price is a promotion or last
minute,
to find
The log says that activesupport cannot be found.
after lookin a little more i found that ist a problem with the
mongrel_rails command and rails 3
On 29 Wrz, 19:41, Heinz Strunk li...@ruby-forum.com wrote:
What exactly does the log say?
--
Posted viahttp://www.ruby-forum.com/.
--
You received
3) and so on.
But when running script/rails s command the application is running
fine. The server admins are stuck right now and I need to boot this in
a couple of days so my client wont be aggravated.
any help is appreciated
adam
--
You received this message because you are subscribed
like autotest is executing with a different environment than yours.
Does it run as a different user (su, maybe), or as a cron job? Either of
those would be using a different environment. Try % env PATH=$PATH autotest
Adam Stegman
--
You received this message because you are subscribed
On Tue, Sep 21, 2010 at 4:14 PM, rodrigo3n rodrig...@gmail.com wrote:
Hello everyone, I have a messages_controller, inside this controller,
among all the default methods I have a tweet method that sends the
message to twitter, and aside the 'edit' and 'destroy' links I want a
'tweet' one.
/mongrel_rails:19:in `load'
from /usr/bin/mongrel_rails:19
is this a problem with the server or is something wrong with the
application?
( searching on Google found nothing )
thanks for any help, Adam
--
You received this message because you are subscribed to the Google Groups Ruby
method itself.
Adam Stegman
--
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
rubyonrails-talk+unsubscr...@googlegroups.com
On Mon, Sep 13, 2010 at 10:01 AM, Awijeet Mr. li...@ruby-forum.com wrote:
How to use x.new() in y_controller.rb where x is model and y is
controller?
Thanks
Nothing to it, just type
X.new
like you said. What trouble are you having?
--
You received this message because you are subscribed
On Wed, Sep 8, 2010 at 12:07 AM, nobosh bhellm...@gmail.com wrote:
Adam, interesting , what are you thoughts about when I want to return
all books by instance_id.. won't that kill the db looking at the
user's table?
You're right that it would be extra logic in the query
On Wed, Sep 8, 2010 at 12:55 AM, nobosh bhellm...@gmail.com wrote:
I'm trying to work out your suggestion on how to not have a
instance_id in books. can you take a look at let me know what's wrong
and if this is what you suggest? thxs!
class Instance ActiveRecord::Base
has_many
On Wed, Sep 8, 2010 at 10:43 AM, nobosh bhellm...@gmail.com wrote:
Adding attr_accessible :instance_id to the model gets the value in the
db but the instance_id probably shouldn't be accessible as it would
allow another instance to possibly steal another user/instance's info,
right?
You'll
, to me. If it fails, redirect back to the new page
just like a failed save would.
Adam Stegman
--
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
On Wed, Sep 8, 2010 at 10:05 PM, Anthony Smith anth...@sticksnleaves.comwrote:
Here's the logic:
1. A user will navigate to the new page
2. A user will be presented with an input box
3. The user enters a value
4. A search will be performed using AJAX
5. If a search comes up
would it be a member action? If he's searching for a book, he doesn't
know yet what book he wants - it would be a collection action. I would also
expect it to be a GET, not a POST, since he's retrieving search results, not
creating anything.
GET /books/search?title=query
Adam Stegman
--
You
would
make more sense.
A RESTful controller is based around a resource. In this case, you're
searching a resource to see if it has a record matching your query, so it
makes sense to me to put it in /titles/search.
Adam Stegman
--
You received this message because you are subscribed
:
/titles/:id/search
What would you suggest putting as the ID?
Instead, this is acting upon the /titles collection of resources, searching
for something that exists within it. As such, the URL would be:
/titles/search
Adam Stegman
--
You received this message because you are subscribed to the Google
On Tue, Sep 7, 2010 at 3:44 AM, Priyanka Pathak li...@ruby-forum.comwrote:
Hello,
I am using link_to helper to post the request. i want to hide the
extra parameters. so i have tried :method = :post also :post = true.
but it's not works for me. still it shows query string. can any one
(params[:book])
or
@book = current_user.books.create(params[:book].merge(:instance_id =
current_user.instance_id))
Both assume that params[:book] is non-nil and is a Hash. I'd prefer the
first - it's more readable.
Adam
--
You received this message because you are subscribed to the Google Groups Ruby
On Tue, Sep 7, 2010 at 11:41 PM, nobosh bhellm...@gmail.com wrote:
Adam,
Thanks for the answer, let me add a little color as to what I'm trying
to get working:
I have the following models: Users (id, name, email, instance_id,
etc...) Instances (id, domain name) Books (id, name, user_id
a new Rails 3 project and adding your gems one by one.
Someone on stackoverflow also posted this issue:
http://stackoverflow.com/questions/612/how-to-avoid-deprecation-warning-with-named-scope-rails-2-x-scope-rails-3-c
I'd appreciate any help. Thanks in advance =].
Adam
--
You received
)
is a Ruby 1.9 method, and you're using Ruby 1.8. It looks like the version
you're trying to install is written only for Ruby 1.9. You probably need to
find an older version.
Adam
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post
On Wed, Sep 1, 2010 at 2:21 PM, Renato Isidio li...@ruby-forum.com wrote:
Adam,
we`ve run rake and its ok right now with no errors anymore, but when I
try to do a install_gem it gives me another error:
fcor...@fcorrea-work:~/Desktop/xykoRuby/mechanize$ rake install_gem
--trace
rake
Using person[address][street_address] to denote a nested Hash
structure is semantic, and it is not part of the spec. you might think
it trivial, but not all frameworks behave in this way. So it is useful
to note that this convention exists and explain its rules. Agreed?
That's all I'm asking after
That's not all there is to it. There is also a convention using
parentheses to combine parameters together.
On Aug 25, 12:26 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Adam Lassek wrote:
Using person[address][street_address] to denote a nested Hash
structure is semantic,
In what
-Koser li...@ruby-forum.com wrote:
Marnen Laibow-Koser wrote:
[Please quote when replying.]
Adam Lassek wrote:
That's not all there is to it. There is also a convention using
parentheses to combine parameters together.
Never heard of this. Example?
Oh, wait, are you talking about
1 - 100 of 338 matches
Mail list logo