7stud -- wrote in post #1013293:
Don't ever post errors without the command that generated the errors.
The below is the command i typed. Can you help..
Thu Jul 28 11:37:32 $ rvm install 1.8.7
Installing Ruby from source to: /Users/prem/.rvm/rubies/ruby-1.8.7-p352,
this may take a
Hey guys,
I'm taking the plunge and building a new app on Rails 3.1 (asset
pipelining ROCKS) and using MongoDB as the backend. Does anyone know
of any good fixtures replacements that work with MongoDB and Rails
3.1? I could really use some advice there.
Also, a follow-up question: the two ODMs
Dan Sadaka wrote in post #1013346:
Sounds like DNS issue or the host is down.
Can you ping production.cf.rubygems.org?
-D
I did 'dig production.cf.rubygems.org' got error as could not find host.
I again did 'dig http://production.cf.rubygems.org' got a success.
But I dont get how to solve
Hi all! I want to add alert message via jquery when User clicks div
id=starstar/div.
But, It can't work.
Please teach me some advice.
Thanks!
# posts/index.html.erb
[code]
...
% @posts.each do |post| %
tr
td%= post.id %/td
td%= post.content %/td
td/td
div id=like
Ok.. So I've got my initial table structures setup and I was hoping I could
have associations help me out with something akin to embedded/nested objects
but without the direct nesting (unless there's another way to achieve that
goal)..
So, I've got an Address class that looks like the
You don't have a FK for user_id in your ADDRESSES table for starters, and
you didn't include your model files, so there's no way of knowing whether
you've defined the relationships there.
See:
http://guides.rubyonrails.org/migrations.html
http://guides.rubyonrails.org/association_basics.html
On
Hi,
Show us the error you are getting on that.
Also, check your html code generated to see if the javascript
libraries are loading correctly, in this case, the jquery library.
If you are not on rails 3.1 you are probably loading the prototype
files instead the jquery as needed.
On Jul 28,
On 28 July 2011 04:28, 7stud -- li...@ruby-forum.com wrote:
[...]
resources :sessions, :only = [:new, :create, :destory]
Nothing to do with the problem, but that should be destroy, not destory
Colin
--
You received this message because you are subscribed to the Google Groups Ruby
on
On 28 July 2011 07:53, Rick Nellie Flower n...@ca-flower.com wrote:
Ok.. So I've got my initial table structures setup and I was hoping I could
have associations help me out with something akin to embedded/nested objects
but without the direct nesting (unless there's another way to achieve
*Dear all:*
I am trying to start rails but it is not getting started. It is giving
following error:
-[31mCould not find gem 'mysql112 (~ 0.2.6)' in any of the gem sources
listed in your Gemfile. -[0m
I used following commands for app:
*rails new myapp -d mysql
*after successfully executing
Hi Chirag,
I am still getting error while starting the rails.
-[31mCould not find gem 'mysql112 (~ 0.2.6)' in any of the gem sources
listed in your Gemfile. -[0m
Please help on this, I found the gem file and added *gem 'mysql' *in to it
but it still shows error. please help on this.
Thanks,
I m getting error while using paperclip gem:
Template is missing
Missing template uploads/show with
{:handlers=[:erb, :rjs, :builder, :rhtml, :rxml], :formats=[:html],
:locale=[:en, :en]}
in view paths C:/Users/trainee5/uploaders/app/views
can any one help me..
Thanks..
--
You received
Please mentioned more details that what you trying to do with the paper
clip gem
By this error, only things come that you have not show.erb in your views
Or you have to specify any render or redirect in the show method
- Chirag Shah
--
Posted via http://www.ruby-forum.com/.
--
You received
Hi amit,
Please tell me the gem you gave for mysql in Gemfile. (any
versions?)
On Thu, Jul 28, 2011 at 2:48 PM, Amit Bobade amit.sr...@gmail.com wrote:
*Dear all:*
I am trying to start rails but it is not getting started. It is giving
following error:
-[31mCould not find gem
Hello,
i'm trying out Rails 3 and i've created a little app with paperclip.
My problem is that i cant get the assets for a user in the index
action but in the edit action it works. i have the flowing set up
class User
has_many :assets
class Asset
belongs_to :user
has_attached_file
looks like you have wrong entry in your Gemfile.
Can you attach or paste contents of your Gemfile?
Chirag
http://sumeruonrails.com
On Thu, Jul 28, 2011 at 2:53 PM, Amit Bobade amit.sr...@gmail.com wrote:
Hi Chirag,
I am still getting error while starting the rails.
-[31mCould not find
Hi,
Gem file is as follows:
source 'http://rubygems.org'
gem 'rails', '3.0.9'
# Bundle edge Rails instead:
# gem 'rails', :git = 'git://github.com/rails/rails.git'
gem 'mysql2', '~ 0.2.6'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use
mysql2 won't install on windows, use mysql gem instead.
So, change this line
gem 'mysql2', '~ 0.2.6'
to
gem 'mysql'
and in your config/database.yml file, change the adapter from *mysql2* to *
mysql* for all 3 databases.
Chirag
http://sumeruonrails.com
On Thu, Jul 28, 2011 at 4:14 PM, Amit
Hi Chirag,
It worked Thank you very very much. :)
Thanks,
-Amit.
On Thu, Jul 28, 2011 at 4:19 PM, Chirag Singhal chirag.sing...@gmail.comwrote:
mysql2 won't install on windows, use mysql gem instead.
So, change this line
gem 'mysql2', '~ 0.2.6'
to
gem 'mysql'
and in your
Hi Manivannan,
Thanks for your reply. I was using mysql2 and now I changed it to mysql. Now
there is no error, everything is working fine. I am new to ruby, hoping for
you help in future.
Thanks,
-Amit
On Thu, Jul 28, 2011 at 3:58 PM, Manivannan Sivaprakasam
manisiv...@gmail.com wrote:
Hi
Hi all,
I have a form that uses ajax to add a product to a cart. After all
verifications it must redirect to the product page again.
When I call the js, it makes all the verifications, if one fails, it
renders them in a specific div with the explanation, but if there are
no errors, it must
Chirag, Thank you,
Differences between the Rakefile to rails2 rails3.
Rails2 the Rakefile:
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require '...'
Rails3 the Rakefile:
require File.expand_path('../config/application', __FILE__)
NameApplication::Application.load_tasks
brother
Does anyone knows how to make an image, or anything that I draw on my page,
to move by dragging with mouse?
Is there a rails way to do it? if not, is there any way to do this?
Thank you,
Rodrigo
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
On Jul 28, 2011, at 1:13 AM, Chirag Shah wrote:
Have you installed both nokogiri versions to your machine ?
Brian Jakovich wrote in post #1013456:
Trying to use cabybara and aws's ruby gem and I'm getting this error:
*Bundler could not find compatible versions for gem nokogiri:
In Gemfile:
Great, copy over the changes and post again if you get stuck anywhere else.
Chirag
http://sumeruonrails.com
On Thu, Jul 28, 2011 at 5:39 PM, Rodrigo Martins rodr...@rrmartins.comwrote:
Chirag, Thank you,
Differences between the Rakefile to rails2 rails3.
Rails2 the Rakefile:
Have a look at the Scriptaculous Draggable library. http://script.aculo.us
This is built in to Rails 3.1. I'm sure there's similar in jQuery
for Rails = 3.1.
Walter
On Jul 28, 2011, at 8:31 AM, Rodrigo Ruiz wrote:
Does anyone knows how to make an image, or anything that I draw on
my
I take it no one has poked around with the Rails 3.1 engines yet?
-Adam
On Jul 25, 3:27 pm, astjohn astj...@gmail.com wrote:
Hi all,
I was hoping someone could please clarify the differences between a
full engine and a mountable one.
I have noticed the following:
** Full Engine **
-
On Jul 28, 1:32 pm, Rob Biedenharn r...@agileconsultingllc.com wrot
On Jul 28, 2011, at 1:13 AM, Chirag Shah wrote:
Is there any way around this? Has anyone else had this problem
No.
~ 1.4.4 means: = 1.4.4 and 1.5
1.5.0 means: = 1.5.0
So there's no way to have a single version of
Thanks for your answer
do you have any link to a site with examples or something like that
I really don't know much about ajax
On Jul 28, 1:20 am, Chirag Shah li...@ruby-forum.com wrote:
You can call ajax request on change or on lost focus of the code field
For send ajax request you can do
Thanks guys! I'll play with this some more when I come home this evening..
One more question if I could.. If I get the plumbing all plugged in as needed,
do I ned to do
anything in particular with the view for the address object to get it to show
up when adding or
editing a user record or
On Jul 28, 2:53 pm, Rick Nellie Flower n...@ca-flower.com wrote:
Thanks guys! I'll play with this some more when I come home this evening..
One more question if I could.. If I get the plumbing all plugged in as
needed, do I ned to do
anything in particular with the view for the address
I'm stuck with SVN (enterprise requirement) but not stuck with Vlad.
I'll check out Cap and see if that makes my like easier.
Thanks for the feedback everyone.
On Jul 27, 8:46 am, dsadaka d...@web-site1.com wrote:
I use capistrano and I don't have to worry about any of that.
Sure it copies
so you think, i have to set the mime-type of each attachment
manually/explicitly?
--
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
I'm interested in this, too, but I haven't used 3.1 yet. Let us know
what you find out!
On Thu, Jul 28, 2011 at 9:11 AM, astjohn astj...@gmail.com wrote:
I take it no one has poked around with the Rails 3.1 engines yet?
--
You received this message because you are subscribed to the Google
Found how to do it.
window.location.replace( url-to-go ); in the template. Was looking to
do this inside the controller but this works too.
Thanks!
On 28 jul, 11:30, A. Fernández antoniofernandezv...@gmail.com wrote:
Hi all,
I have a form that uses ajax to add a product to a cart. After all
Hello folks,
I have been testing out Watir developed on the Ruby platform to make
some automated tests for JD Edwards on E1(Enterprise software suite). We
are using SQL Server and I am having trouble connecting to the database
here using ActiveRecord (based off of Rails). So far I have the script
Not to spam the list, but I thought the Rails community may be
appropriate to tap into.
We're looking for agilist web/mobile developer(s) over at Mutually
Human:
http://mutuallyhuman.com/blog/2011/07/28/looking-for-a-fellow-human-agile-mobile-web-rails-developer
If you or anyone you know may be
Hey
When you do (user.assets.each do |assetfield|) you are getting each Asset
object associated to user in the assetfield variable, but still you need to
access the attachment property which is 'asset'. So basically you just need
to change assetfield.url(:thumb) for assetfield.asset.url(:thumb)
You could do order.attributes = params[:order], inspect the changes
and then save the object.
Fred
@fred that worked perfectly.
--
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
Hello everyone,
Nice to meet you all, am new to the forum.
I'm stuck with rake / actionmailer trying to display a set of found
records.
We have a simple actionmailer rake task that is supposed to send a daily
email digest of tasks that are due for a specific user. So far, it's
working but the
Hi there fellows !
I'm currently working on a JSon view and had to make my own view (for
simple ActiveSupport::JSON can't do the trick anymore).
The thing is, after my controller does this :
respond_to
format.html
format.json
end
It does use the correct view in the correct context. Yet,
I tryed rails generate jquery:install --ui but my draggable method still
does nothing.
Can anyone help me ?
What is the proper way to install jquery ui (specially for dragging
elements)?
Thank you,
Rodrigo
--
You received this message because you are subscribed to the Google Groups Ruby
on
Railscasts has some examples:
http://railscasts.com/episodes/43-ajax-with-rjs
http://railscasts.com/episodes/136-jquery
On 27 jul, 08:45, Paul Bergstrom li...@ruby-forum.com wrote:
How do I make an ajax call and then update a div with a partial? I've
tried this but it's not working. Comment is
Rodrigo Ruiz wrote in post #1013597:
I tryed rails generate jquery:install --ui but my draggable method still
does nothing.
Have you tried any of the browser developer tools to make sure
jquery-ui.???.js is getting loaded. If you're using FireFox then FireBug
is good for that. If you're using
One way:
link_to #, new_comment_path, :remote = true, :id =
new-comment-link
new.js.erb
$(#new-comment-link).hide();
$('#commentlist').html('%= render :partial = comments %')
You can use ruby logic in the .js.erb file - just like you could in
former .rjs files.
% if @condition %
Hi,
I have a problem to set up the language
I did use
@font-face {
font-family: english;
src: url(%= current_language.get_font_url %)
format('truetype');
}
html {
font-family: english;
}
%= current_language.get_font_url = app_data/language_english/
Hello,
I'm trying the search method used in the Guides:
http://guides.rubyonrails.org/form_helpers.html
and I don't know what is coming back to the controller when a text box
is empty. When each of the 2 text boxes (described below) have a
value then the search works. However, if the second
some of the rails community may be interested in this new ma/msc from
goldsmiths:
http://www.gold.ac.uk/pg/ma-creating-social-media/
the cultural studies part focuses on theory and practice that enables
new forms of social media, and the computing part leans heavily
towards hacking and social
One way:
link_to #, new_comment_path, :remote = true, :id = new-comment-link
new.js.erb
$(#new-comment-link).hide();
$('#commentlist').html('%= render :partial = comments %')
You can use ruby logic in the .js.erb file - just like you could in former .rjs
files.
% if @condition %
Hej
You probably should check the params hash in the controller:
@skill_search1 = params[:skill1] etc..
Also use a debugger call in the search method to see the
parameters that are passed
def search
debugger
.
.
end
Cheers,
Eric
On 28 jul 2011, at 22.03, Barney wrote:
Hello,
On Jul 28, 5:53 pm, Michael José li...@ruby-forum.com wrote:
Hi there fellows !
I'm currently working on a JSon view and had to make my own view (for
simple ActiveSupport::JSON can't do the trick anymore).
The thing is, after my controller does this :
respond_to
format.html
On Jul 28, 7:22 am, Phoenix Rising polarisris...@gmail.com wrote:
Hey guys,
I'm taking the plunge and building a new app on Rails 3.1 (asset
pipelining ROCKS) and using MongoDB as the backend. Does anyone know
of any good fixtures replacements that work with MongoDB and Rails
3.1? I
Hi mates,
I've hit a problem and hope for some advices.
I am developing a blog for my family and I want to provide the
opportuniy that everyone may format his blog posts. After some research
I found RedCloth. It seems that it does exactly what I want, but for
output i need to use the raw
On Thu, Jul 28, 2011 at 8:02 AM, Damien Knight li...@ruby-forum.com wrote:
so you think, i have to set the mime-type of each attachment
manually/explicitly?
No.
First off, I'd recommend possibly contacting people in the Ruby's Mail
Discussion Group
On Thursday, July 28, 2011 10:05:01 AM UTC-6, Ruby-Forum.com User wrote:
Hello everyone,
Nice to meet you all, am new to the forum.
I'm stuck with rake / actionmailer trying to display a set of found
records.
We have a simple actionmailer rake task that is supposed to send a daily
email
How can I capture the block that I pass through a partial. I want to
be able to do something like:
%= render 'shared/partialname' do %
Misc code / text
% end %
Then I want to display that block at a specific place in that partial.
I could do this if I created a method. But I want to know how
Hi Eric,
I'm using Scite and there doesn't seem to be a debugger in it.
How else would I check that hash?
But, could you tell me what form (type, value) is the return from
that empty text box?
Thanks,
Barney
On Jul 28, 4:59 pm, Eric Björkvall eric.bjorkv...@gmail.com
Hej Barney
The debugger call will stop the execution and drop you into the debugger - it's
not from within your text editor - it's in the
terminal window where you run your app
Start your app with
rails server --debugger
or (if your running rails 3.0 )
script/server --debugger
Cheers,
On Thu, Jul 28, 2011 at 3:59 PM, Barney bsper...@gmail.com wrote:
How else would I check that hash?
Besides the previously mentioned debugger, you can add logging
statements to your code to provide more information.
But, could you tell me what form (type, value) is the return from
that
Brent wejrowski@... writes:
How can I capture the block that I pass through a partial. I want to
be able to do something like:
%= render 'shared/partialname' do %
Misc code / text
% end %
Then I want to display that block at a specific place in that partial.
I could do this if I
Barney bsperlin@... writes:
And a relevant section of index.html.erb is:
%= @people.each do |person| %
tr
...
td%= person.zip_code %/td
td%= person.skill_set %/td
td%= WHAT GOES HERE TO BE ABLE TO PRINT THE position FIELD OF
THE employee_infos TABLE? WHAT CHANGES SHOULD
Well, as the subject, I want to use those 3. Problem is I don't want to use
amazon s3 in development, I want to use it only on heroku.
How do I do that?
Thank you,
Rodrigo
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
Ok.. Still working on this stuff.. I've got the t.reference in the migration
for the address class and moved the belongs_to and has_one in the model classes
as indicated (I didn't notice that!).
I noticed in the association-basics that I should be putting a create_table
function (if that's
I am using Mongoid and factory girl works fine. Havent used mongomapper, but
Mongoid seems to provide the flexibility of using active record type
relationships, with ongoing active support and upgrades to the orm.
Regards
David Krett
--
You received this message because you are subscribed to
Sent from my iPhone
On Jul 28, 2011, at 6:52 PM, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote:
Well, as the subject, I want to use those 3. Problem is I don't want to use
amazon s3 in development, I want to use it only on heroku.
How do I do that?
Thank you,
Rodrigo
If you're in
Thanks for the info.. after i paste the code outside of the block, it
worked for me.
--
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
66 matches
Mail list logo