Thanks. What I'm looking for is an admin dashboard to manage your queues,
see how many jobs are in it, see what's failing, etc. Do you know of
anything like that?
--
Sent from my Android.
On Jul 20, 2015 12:32 PM, "Taras Matsyk" wrote:
> Hi Jeff,
>
> I am not so adv
What's a good admin interface for managing your queues (like delayed job)?
I had a good experience with Google App Engine's, but that was for Python,
not Rails, so I'm wondering if there's something similar.
--
You received this message because you are subscribed to the Google Groups "Ruby
on
acter-set = utf8
...
[mysqld]
...
collation-server = utf8_unicode_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
...
[mysql]
...
default-character-set = utf8
...
Hope that helps,
Jeff
On Tuesday, January 6, 2015 4:36:46 AM UTC-8, Diego Dillenburg Bueno wrote:
>
>
So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ?
Because thus far, attempting to get these two in line is turning out to
be a real headache... :(
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
.8.7 and RubyGems
1.3.6 is there a way to pass the version of Rails to the gem installer ?
Thank you in advance.
Jeff
--
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 f
What do people who use SequelPro (and related tools) do to trigger their
action filters usually?
Writing an API sounds ideal but what if you have little control over the
tool.
On Friday, March 28, 2014 6:46:37 AM UTC-7, mike2r wrote:
>
>
>
> On Friday, March 28, 2014 8:47:24 AM UTC-4, Hassan
I have an external process changing the database of my app. Is there a good
way to trigger the before save and after save filters for models that get
updated, when it is an external process changing it?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
I have a Rails app that makes connections to other DBs. There may be
multiple users connecting to multiple DBs.
The app makes a database connection as part of an action. However, I
noticed a problem: there's too many DB connections remaining open, which is
causing the DB to not have enough con
e to wrap that work
in a begin ... rescue Exception => e2 ... end ... before then re-raising
the originally caught exception.
Jeff
On Tuesday, November 12, 2013 11:26:47 AM UTC-8, sol wrote:
>
> Hi Jeff, thanks for your reply!
>
> I found the article here:
>
> http://www.s
rver Error in 17ms
[c55f5]
ZeroDivisionError (divided by 0):
app/controllers/foo_controller.rb:89:in `/'
app/controllers/foo_controller.rb:89:in `testfoo'
...
Jeff
On Tuesday, November 12, 2013 6:40:12 AM UTC-8, sol wrote:
>
> Hi there,
>
> I'm using Log4r in my rails
--
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 it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@goog
front.
C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe -e
$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:/Users/Jeff
Gray/RubymineProjects/sample_apps/script/rails" console development
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/irb/completion.rb:9:in
`require': can
Very confusing and hard to track down, but my coworker and I managed to
figure it out.
Thanks all!
- Jeff
--
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
Thanks for the response. Yeah, it's validating fine. I have discovered
that the hit_id that I have in the session at the end is actually
incremented by one, like it completely recreated the session, just
without a shopper_id. Can't replicate in any other browser than
firefox... (on Mac)
--
Po
Hello all,
I've been trying to diagnose an issue with CSRF and Firefox
specifically. I've got an ajax based form, using UJS (yes, I have
csrf_meta_tag in my layout and I've tried adding the X-CSRF-Token header
to the ajax beforeSend events without any luck)... The form just posts
some data to an
Hey, I know this was an old post of your. By any chance are you still
interested in speaking with Rails programmers?
On Monday, May 30, 2011 10:33:44 PM UTC-4, Long wrote:
>
> Anyone in Ottawa (or is relocating to :) Canada looking for a Rails
> position? Send me a note for more information.
>
>
lin Law wrote in post #1083465:
> On 7 November 2012 22:06, Jeff Lockyer wrote:
>> NoMethodError (undefined method `province' for nil:NilClass):
>> /path/file.rb:302:in `set_no'
>>
>> So I look on that line, in the set_no definition, which is where I was
&
d_by_sql call.
Does this make any more sense now ? I have been through many attempts to
resolve this, and can work with parameters, etc but with DB returns it
seems I am missing something.
Colin Law wrote in post #1083450:
> On 7 November 2012 20:07, Jeff Lockyer wrote:
>> I am new t
I am new to the language and trying to add a couple of simple tests on
user input, followed by a DB query, then using the returned values
(where the problem lies)
I first run a find_by_sql similar to this
@my_names = modelname.find_by_sql
I then check to see if NO returns via
if @my_names.size
Hi Adam,
I haven't used net-ldap gem (I've always just used ruby-net-ldap gem for
past several yrs for various projects), but ... Here's a link to the
specific note in the current src regarding that setting:
https://github.com/RoryO/ruby-net-ldap/blob/master/lib/net/ldap.rb#
Colin Law wrote in post #1075952:
> On 13 September 2012 22:20, Jeff Pritchard wrote:
>>> Colin
>>
>> Thanks Colin!
>>
>> This is sort of:
>> binary data --> long list of SQL statements
>> long list of SQL statements --> binary data using n
Colin Law wrote in post #1075905:
> On 13 September 2012 21:41, Jeff Pritchard wrote:
>> db over from the old server, or if there will be a need for some sort of
>> a migration?
>>
>> Any info on what I'm up against there will be much appreciated.
>
> In t
I have an old rails project that is currently in Rails 2.3
I'm about to undertake updating the project to Rails 3.2.
The old project's production server is on mysql 5.0 and has a medium
size database (not huge, but certainly big enough that I need to keep
the data after I upgrade the app).
If I
ing it in some sort
of global check_if_signed_in function that I could call at the top of
various controller methods.
Anyway, how is that typically done in Rails? Seems like something that
would come up a lot for many sites (online banking, facebook, etc all
require sign in prior to anything else)
Is there somewhere that explains the new updates to gem files like needing
rubyracer or execjs - like what things have changed? When I first started
working with rails about 4 months ago there was no need for
thanks
On Sunday, July 8, 2012 10:42:05 PM UTC-6, Chitrank Samaiya wrote:
>
> Hi,
>
Could not find a
JavaScript runtime.
I cant seem to get around this problem - any thoughts
Thanks in advance
Jeff
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.g
. C++ at one time, perl, IDL, unix and dos
scripting, html,... I am in the Denver metro area. please contact me
at kyzer...@yahoo.com if you have such a thing or know of someone who
does
Thank you for your time
Jeff
--
You received this message because you are subscribed to the Google Groups
hanged.
thanks
jeff
--
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
rubyonrails-talk+unsubscr...@googlegro
Hello and good day
I am running railinstaller, and I am getting a todo project created.
Anyone know what this is about?
thank you
Jeff
--
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 r
I have a complicated rails screen with terrible performance.
I've been trying to narrow it down and figure out what is soaking up all
the time, but there doesn't seem to be any one major suspect...lots of
important stuff all taking up time.
The standard Rails logging shows that most of it is rend
Hi
I started working with the book Ruby on Rails3 about 2 months ago.
Going through the sample app was fun and interesting. I had to put it
down for a couple of weeks. When I came back to it, I figured that I
would just start over. So from the very first part - the addition of
a title - new stu
ything out the window?
Thank you for your help
Jeff
--
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
rubyo
Thanks a ton Fred. I went to my routes.rb file and after staring at
it for about an hour, I found the typo. dam typos. learning this is
a ton of fun, but I am losing some hair. :)
Jeff
On Apr 24, 6:10 pm, Frederick Cheung
wrote:
> On Apr 23, 11:59 am, Jeff Kyzer wrote:> Hello
>
Hello
I am trying to run the command:
rails g model User name:string email:string
and I am getting the below error, and i dont know what it means -
please help
thanks - Jeff
C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.0/
lib/action_dispatch/routing/mapper.rb:179:in
Hello all
Something that once worked is no longer.
I am learning Rails from the book "Ruby On Rails 3 by Michael hartl,
so i am going "by the book" I am using rspec to run tests. I believe
i have downloaded all the necessary gems and run bundle install. I am
using windows 7. When I run rspec
Thank up Walter.
Think I looked at that line a hundred times. I know it had to work -
it work all along.
Thanks again
Jeff
On Apr 6, 1:40 pm, Walter Lee Davis wrote:
> On Apr 6, 2012, at 3:37 PM, Jeff Kyzer wrote:
>
>
>
>
>
>
>
>
>
> > Hello
> > I h
Hello
I have been learning ruby on rails 3 from the Michael hartl book, and
I have run into something that I can't figure out. After updating the
gem file and running bundle install, I am getting the following error
You passed :required as an option for gem 'sqlite3-ruby', but it is
invalid.
Her
I'm trying to use send_data to send a simple text file.
Every reference I can find says I can supply a MIME type with the
":type" option and that will determine the kind of file I get on the
machine that downloads the file I'm sending. Instead I ALWAYS get an
XML file.
here's the code snippet:
of pop-up alerts for other things like loading software. My uac is
set to default.
Someone please help me get this straightened out.
Thank you for your help
Jeff
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this
college class or some videos.
If these questions have already been answered, please just post me the
link.
Thank you
Jeff
--
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 rubyon
ring no matter what, I've
used something like the following:
...
IC_UTF8 = Iconv.new('UTF-8//IGNORE', 'UTF-8')
...
def force_utf8(str)
#note added extra space plus chop to fix certain cases.
IC_UTF8.iconv("#{str} ")[0..-2]
end
...
> s2
=&g
*headslam* I just needed to RTFM more closely. I assumed the fields
weren't being populated because I was using launchy to
save_and_open_page to see if it had done so. Capybara-webkit doesn't
instantiate a browser though, it access the renderer (webkit) directly.
This is working now :P
--
Pos
NOT
fill in the text UNLESS I get rid of :js => true. I'm going to be
testing ajax, so I need this functionality...
This headache is turning into a migraine...
Advice?
Thanks,
- Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
esh during testing with
# capybara and selenium.
gem 'database_cleaner', '~> 0.6.7'
As a dependency of capybara-webkit, I also installed the QT libraries.
I still don't know why I was getting the "Zip is not a module" error,
but I hope this helps someone in t
y hard time trying to track down the cause of this...
Heck, the only reason why I am using RSpec and Capybara is for
Javascript support (other tests in the app use test unit).
Any and all help is appreciated!
Thanks,
- Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message
7;, :via => [:get]
...
$ cat ./app/controllers/misc_controller.rb
...
def ping
render(:text=>"1\n")
end
...
$ curl -si http://foo.localhost/ping
HTTP/1.1 200 OK
...
1
Another general benefit of this type of proxy'd setup is that if you
or your client decides they want
ch will produce strings like "3ec1a6a0-017a-8fb4-0c26-56858ddc3886"
Jeff
On Dec 8, 4:54 am, Peter Vandenabeele wrote:
> On Thu, Dec 8, 2011 at 12:25 PM, sachin kewale wrote:
>
> > MissingSourceFile in HomeController#index
>
> > hi Colin ,
> > following is the full
,
- Jeff
--
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 from this group, send email to
rubyon
ve done some logger.debug stuff to make
sure it's going to the right blocks.
>From what I've researched, this is the standard way to do this, but it
doesn't seem to work (at least in Rails 3.1) can somebody point me
in the right direction here?
Any and all help is appreciated :
then on, for that instance, you can call place.address, and it
will show up in place.to_json (since to_json is generated from
place.attributes, which now has a k/v for address in attributes).
Jeff
On Oct 25, 8:16 am, Frederick Cheung
wrote:
> On 25 Oct 2011, at 16:00, "Lukas M."
I have set my routes.rb to point to the welcom#index I generated using
the railsinstaller.org instructions and on my local machine I can view
the page, but when I push my app to a cloud server (I've tried both
engine yard and heroku) I get either the index.html (in the public
folder) or the 500.htm
Hi,
I'm pretty sure what you're referring to is pointing Apache (the A in
XAMPP) to your rails server. If this is your development environment,
there isn't really a point in doing it. It would simply forward requests
from port 80 and pass it over to port 3000, where you're likely running
your
ad of post_url). I was able to pass the URL parameter into the
troublesome statement and it works now:
What was:
feed.entry post do |entry|
Is now:
feed.entry(post, :url => blog_post_url(:title => post.url_title)) do
|entry|
Resolved! Thanks,
- Jeff
--
Posted via http://www.ruby-forum.com
...
The strange thing about this error is that I don't specify post_url
anywhere in the builder... Somehow, it automatically wants to use that
route helper. However, my routes are setup like blog_post_url and not
just post_url.
Anyone have any ideas?
Thanks!!
- Jeff
--
Posted via http://
: v
end
...
and then adding a before_filter which modifies submitted params
strings forcing them to utf-8 before accessing/using those params in
the app.
(Maybe there's a better/simpler way since I last tested this issue?)
Jeff
On Sep 6, 11:03 am, Perry Smith wrote:
> Yes, I understand Ruby
UPDATE:
I upgraded to Rails 3.1.0.rc6 and it's working now. I guess something
is broken for the asset pipeline in rc4...
--
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,
27;m
not sure if this is expected operation or something is broken...
Thanks in advance!!
- Jeff
--
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 rubyonrai
b
per project where all cron'd events related to that project are kept).
The ability to easily develop/test/run scripts using your existing
app's models/etc via runner (using the same exact calls you would/
could make in console) is one of the nicest built-in features of
rails.
Jeff
On Jul 24
For anyone that's interested You can inspect the model's
current attributes to see that additional data that was added in your
custom query:
...
puts("herd_ration: #{herd_ration.attributes.inspect}")
...
Jeff
On Jul 9, 10:11 am, clem_c_rock wrote:
> app
Our Client is looking for Software Engineers to be a part of a team
developing complex systems to support a rapidly growing business. The
complexity of our client’s system will challenge seasoned developers.
The ideal candidate will have experience with large scale n-tiered
applications.
Requireme
ource/third.js.coffee
Ideally, the server would compile these to js ONCE, then bundle them, then
create a static file. Otherwise it's going to be wasting cycles repeating
effort.
Can someone clarify what happens?
Thanks,
Jeff
--
Jeff Pickhardt
(650) 530-0036
pickha...@gmail.com
--
You rec
Have there been any showstopping issues since rc4? It's been a couple weeks
since the last rc and I'm wondering if there are any showstopping issues I
can (if I'm lucky) help resolve. (Or is there some obvious way to know this
on Github that I'm overlooking?)
Thanks!
Je
gt; s2 = Iconv.new('UTF-8//IGNORE',
'UTF-8').iconv("#{s} ")[0..-2]
=> "foo bar"
ruby-1.9.2-p136 :006 > s2.gsub(/bar/, 'biz')
=> "foo biz"
And if that's not doing the trick, then maybe try forcing the string
to utf8 first
outlined by Paul Battley (http://po-ru.com/diary/
fixing-invalid-utf-8-in-ruby-revisited/):
...
def AppUtil.force_utf8(str)
ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
return ic.iconv("#{str} ")[0..-2]
end
...
Jeff
On Jun 16, 5:27 pm, Erica wrote:
>
Thanks,
Jeff
*Jeff Brockmeyer*
j...@lunadatasolutions.com
IT Recruiter
Luna Data Solutions, Inc.
--
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@googlegrou
In my application.rb, I have this:
#require "rails/all"
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "active_model/railtie"
(I didn't want ActiveRecord) This worked fine up to 3.0.6, but now fails
with:
/Users/jeffdeville/Document
Thank you, sir - you've saved my bacon as well as my mind.
--
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
.
Thanks in advance!
- Jeff
--
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 from this group, s
a time, so that that item alone is processed
and when done updates the ui, in order until all work is completed.
Note that this type of strategy may not really be possible, nor
preferable really compared to just doing it the right way ...
async'ly.
Jeff
On Mar 7, 1:50 pm, Erwin wrote:
&
o is just make those mysql-
specific calls (via exec) from within your migrations as needed, to
ALTER the table column to TIMESTAMP (from DATETIME) and set any other
mysql-specific things you need defined on that TIMESTAMP column in
mysql.
Jeff
On Mar 3, 2:33 pm, Kendall Gifford wrote:
> I
Wow, thanks for the responses everybody!
I'll be working on this a little later today, I'll definitely try out
your suggestions.
Thanks!!
- Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
doesn't exist.
I'm pretty sure I've got the controller and model right, but I just need
to tell Rails to NOT look in the database for this model...
Any ideas?
Thanks in advance,
- Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are su
I'm experiencing the exact same problem Adam. I haven't been able to
figure out what is causing it either...
--
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 unsubs
Thanks for the heads up. Will do!
pat wrote in post #981495:
> Great to hear - if you get stuck again, feel free to ask on the
> Thinking Sphinx google group - I only caught this post because it
> appeared in Twitter via a saved 'thinking sphinx' search :)
>
> http://groups.google.com/group/thinki
Pat my friend, you are a life saver. I created the sphinx.yml and added
the bin path. It now is able to see Sphinx! I've still got some
troubleshooting to do, but at least it works now!
Thanks again,
- Jeff
pat wrote in post #981469:
> Hi Jeff
>
> I'm guessing that searchd
Ah, ok sphinx starts. It was set to 0.0.0.0 by default, but is now set
to 127.0.0.1:9312. However, my rails installation still can't see
Sphinx...
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" grou
Hmmm, well it looks like it's actually Sphinx that's the problem, oops:
jmiller@edison:~/dev/PlurPlay$ service searchd start
Starting searchd
[sudo] password for jmiller:
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
using config file '/usr/local/sphinx/etc/sphinx.conf'..
one point me in the right
direction here? I've been trying to get this going for a few days now...
Thanks in advance! Any and all help is appreciated!
- Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
Ah! I got it. Thanks for pointing me in the right direction!
--
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 unsubscrib
...
content_tag("div", "#{label} #{form_field}".html_safe!, :class =>
"form_row")
...
gives me the error: You can't call html_safe! on a String.
Obviously I'm doing this wrong... where should I place html_safe! ?
Thanks,
- Jeff Miller
--
Post
content_tag("div", "#{label} #{form_field}", :class => "form_row")
end
Then the ERB:
<%= text_field_for form, "first_name" %>
...and finally when it's rendered:
First name:
...which looks right, but it's escaped HTML text for some reaso
"
vals_buf << title
end
conditions = [sql_buf.join(" and ")] + vals_buf
posts = Posts.where(conditions).order(...)...
end
return posts
...
Jeff
On Jan 28, 12:59 am, dan wrote:
> hey guys,i follow the Ruby On Rails Guides,but i didn't see the quer
;user/register"' that reads 'post "user/register"' ...
Does anybody know why this wasn't there to begin with?
Thanks,
- Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
hen I submit it (form_for :user) it complains that my
route (user/register) does not exist... Not quite sure whats going
on... In routes.rb, I have 'get "user/register"' listed.
Can anyone clarify what I might be doing wrong?
Thanks,
- Jeff
--
Posted via http://www.ruby
ssue the query? Can the data be somehow "stored" in the
list view html, so it's returned when the back link is clicked?
Thanks,
Jeff
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send emai
strated in this article. Unlike
Mongrel and Thin clusters however you only need a single Phusion
Passenger Standalone instance per web application and thus only a
single address to proxy to. ..."
Jeff
On Jan 5, 4:53 am, Tom Mac wrote:
> I have two rails applications currently running on s
x27;s
error(s) along with the attr's label and form element.
Note also that if you instead are calling @foo.create! or @foo.save!
in your controller, you'd get at that same errors ordered hash via
ActiveRecord::RecordInvalid:
$ ./script/rails console
...
> begin ; foo2 = Foo.create!({
available from the
usual
sources.
* gem install net-ldap
Simply require 'net/ldap'.
..."
Jeff
On Dec 29, 1:21 pm, Mauro wrote:
> Someone use activeldap?
> I've installad the gem but it seems to me that tha latest activeldap
> version require rails 2.3.8.
> I us
Or just change the way you calculate to get at the level of accuracy
that you want/need:
irb> ("291.15".to_f * 1000.0).to_i/10
=> 29115
Jeff
On Dec 22, 7:41 pm, Marnen Laibow-Koser wrote:
> TomRossi7 wrote in post #970207:
>
> > Any idea why this calculates
stored in the
products db table).
The less round trips to the db, the less joins in the db, the more
denormalized the db, the more indexed the db, ... all of these should
help make direct db reads faster (at the cost of slower writes on such
wide/sparse/denormalized tables).
Jeff
On Dec 6, 9:
to that specific column in the legacy code.
Jeff
On Dec 3, 12:22 pm, Mike B wrote:
> I'm writing a Rails application against a legacy database. One of the tables
> in this legacy database has a column named object_id. Unfortunately
> object_id is also an attribute of every object in R
ult_company_name]
=> "My Company"
If you wanted different vals per environment (ie test, development,
production), then you could define APP_VALS in each of those
environment config files.
Jeff
On Nov 24, 7:36 am, Owain wrote:
> > However isn't there a better way to do
I believe your problem is this:
Blog.comments.all
You want comments on a specific blog, so you need this instead:
@blog = Blog.find(params[:id])
@comments = @blog.comments
Hope this helps.
Jeff
purpleworkshops.com
On Nov 7, 2:56 pm, aperture science wrote:
> I am trying to add comments
I am trying to do the same thing and having the same problems. Please
let me know if you find a solution.
Thanks,
Jeff
--
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
t; is_artist?
>
> def is_artist?
> artist
> end
>
As an aside, there's an even nicer syntax:
validates :master_piece, :presence => ture, :if => artist?
If "artist" is the name of a boolean column, ActiveRecord provides
"artist?" automatically. (Also,
Hey everyone,
I'm looking to set up a development server for my Rails project and have
a shiny new hard drive. Which version of Linux is the best to use?
Or does it not really matter?
Thanks in advance for any help.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because
Hi all,
Learning RoR (and loving it!) to develop a website. A requirement of the
website is enabling users to upload photos to be made viewable (dynamically) on
the website. Is this something I can develop with RoR?
Thanks,
Jeff
--
You received this message because you are subscribed to the
That seems to have done it. Thank you!
On Sep 24, 3:33 am, Hassan Schroeder
wrote:
> On Thu, Sep 23, 2010 at 2:34 PM, Jeff Schmidt wrote:
> > I'm trying to install and use Heroku and having the following problem:
> :
> > sudo gem install heroku
> > My environmen
:0
RUBY_VERSION=ruby-1.9.2-p0
_=/usr/bin/env
Any help will be greatly appreciated!
Thanks,
Jeff
--
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 un
gt;> Host.first.lsainfo
=> #
>> LsaInfo.first.host
=> #
>> LsaInfo.joins(:host).to_sql
NoMethodError: undefined method `eq' for nil:NilClass
from /Users/jeff/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/
active_support/whiny_nil.rb:48:in `method_missing
1 - 100 of 449 matches
Mail list logo