As Anuj mentioned theres a rails-core mailing list (
https://groups.google.com/forum/#!forum/rubyonrails-core)
I just saw the repo briefly, and I want to suggest something. Everything
I've seen rails-related had tests...maybe you should do that too :)
--
You received this message because you
The only thing I would use a mac is for iOS development, besides Rails
development.
In my opinion you shouldnt buy a macbook if you can get the same with any
linux distro. I remember when I started in rails dev and everyone used
macbook pro/airs, that made me want to get one but it was too
Hi,
there may be other topics about it or some other useful links but I always
see this as a good place to start
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
Javier
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
Try:
ObjectSpace.each_object(Class).to_a.map(:to_s).grep(/(stri)/i)
--
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
On Mon, May 13, 2013 at 2:03 PM, Javier Quarite jquari...@gmail.com wrote:
Try:
ObjectSpace.each_object(Class).to_a.map(:to_s).grep(/(stri)/i)
Sorry, no need of to_a :)
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe
well, there's might be some differences in our setups (or something else)
I got this :
[RubyToken::TkDXSTRING, RubyToken::TkDSTRING, RubyToken::TkXSTRING,
RubyToken::TkSTRING, String]
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
As a practice I've done my own authentication methods following a
railscast (http://railscasts.com/episodes/250-authentication-from-scratch),
but I'm using devise in other apps.
I've heard that warden (devise is based on that) should be enough for
everyone who wants an authentication solution but
Tue, Apr 30, 2013 at 3:21 AM, dil.tako...@gmail.com wrote:
I saw some of the tutorials on how to migrate from sqlite to postgresql,
but it is either for mac or it is for a new/fresh app. What if I already
have an App with data sqlite in it. I am using rails 3.2.2 and windows 7.
Anyone knows
On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists
tamouse.li...@gmail.com wrote:
The RSpec book from pragprog actually spends a bit of time discussing
rails testing using both cucumber and rspec, but i would not call it
definitive.
Have you used mini test? Do you recommend rspec to
On Sun, Mar 31, 2013 at 5:17 AM, Dmitrij B. li...@ruby-forum.com wrote:
I want check, how work in xml format. How me call in command line my
format xml? (format.xml { render :xml = @product.to_xml( :include =
:order ) })
I guess you want to see what's the output in rails console
Just open
On Sun, Mar 31, 2013 at 1:55 PM, Dmitrij B. li...@ruby-forum.com wrote:
i add curl --silent http://localhost:3000/products/3/who_bought -H
Accept: application/xml
According to that url you're going to action who_bought on
products_controller
and the problem is inside that action
preundefined
Sorry, I haven't seen the action that you post in the beginning
def who_bought
@product = Product.find(params[:id] )
respond_to do |format|
format.html
format.xml { render :xml = @product.to_xml( :include = :order )
}
format.json {render :json = @product.to_json(:include
Have you considered doing a sql query?
my approach would be this
query_array = []
[3,4,7].each do |value|
query_array user_id != #{value}
end
Plan.where(#{query_array}.join( and ))
Also, the past week I found this gist from ryan
https://gist.github.com/ryanb/4974414
I'm still analyzing it
On Sun, Feb 17, 2013 at 4:25 AM, Jonathon M. li...@ruby-forum.com wrote:
I'm a Rails newbie and I have added the CKEditor Gem which is working
okay. To configure the gem though, you have to edit the config file,
which is also working when I do that. However, when I push to github and
pull to
On Sun, Feb 17, 2013 at 9:44 AM, Jonathon M. li...@ruby-forum.com wrote:
Yes, I'm using rvm. So the CKeditor gem will be there. If I want to
modify the gem and have that modification passed to my deployed site do
I need to move it to within my assets (or whatever)? I ask because
otherwise
On Wed, Jan 23, 2013 at 12:20 AM, New_to_Rails railsrider...@gmail.comwrote:
hi
i am new to rails help me to solve this simple problem, i'm using default
sqlite db in railsi want to work and use oracle database now for
upcomming rails application here is my ruby and rails version
rails
On Wed, Jan 23, 2013 at 12:18 AM, xscr...@gmail.com xscr...@gmail.comwrote:
I added bootstrap-sass to my Gemfile, did bundle install, added @import
bootstrap to my css file. Yet, bootstrap does;t work. Safari fails
silently, Mozila says:
The stylesheet
On Sat, Jan 19, 2013 at 6:44 PM, Pierre-Andre M. li...@ruby-forum.comwrote:
I have a trivial question:
if i have defined something in my controller, like
def calendar
my_time = Time.now
end
That variable only works on that method, you need an instance variable
def calendar
Well, I did a before_validation callback
def bv_callback
puts self.to_yaml
end
and I can see that the object has profesion_name (and every other)
attribute setted
but here
def profesion_related=(id)
puts self.to_yaml
end
there are only 3 attributes filled. I'm still not getting how does
On Fri, Jan 4, 2013 at 4:19 PM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote:
Simple. First, all setter methods are called on AR, and I'm guessing
profesion_related= was called the fourth, so only three attributes are
filled. After all setter methods are called (which means all attributes are
Hi guys,
Thanks both for the reply, I know it could be done by using a callback but
there are more code inside that method.
I'm using profesion_related as mentioned here
http://railscasts.com/episodes/16-virtual-attributes (as well as other code
inside that method)
On Thu, Jan 3, 2013 at 3:22
On Thu, Jan 3, 2013 at 8:52 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote:
No, there isn't. Callbacks are your best bet.
In the end I made a before_validation callback and inside that I'm using
the virtual attribute, but I'm still wondering how AR order the list of
attributes
I started
On Fri, Dec 28, 2012 at 1:39 PM, Eddy Maue li...@ruby-forum.com wrote:
An error occurred while installing sqlite3 (1.3.6), and Bundler
cannot co
ntinue.
Make sure that `gem install sqlite3 -v '1.3.6'` succeeds before
bundling.
Heroku doesn't support sqlite
Try this guide
Hi,
I was going to suggest heroku (the free service) so you can test how it
handles all the students, but seems you want more than that.
Maybe linode? Where I work, we been using it for almost a year. We've
started with linode 512 and now we are using 1024.
Despite 2 interrumptions we had during
On Wed, Oct 24, 2012 at 3:01 PM, Werner webagentur.la...@googlemail.comwrote:
Hi..
I have a select which I want to validate if a value is selected, otherwise
not.
%= f.collection_select :parent_id, Project.mainprojects.active, :id,
:project_name, :include_blank = 'Partproject?', :allow_nil
On Wed, Oct 10, 2012 at 11:05 AM, roelof rwob...@hotmail.com wrote:
Hello,
I want to start all over again with my project.
So I deleted the directory and make the new project.
But when I do rails s I see this error message :
WARN TCPServer Error: Address already in use - bind(2)
Exiting
On Mon, Oct 8, 2012 at 9:05 PM, wragen22 bradwr...@gmail.com wrote:
For some reason getting this error. Following a tutorial step by step.
Why would the added class: btn ect be the problem?
compile error
/Users/bradwrage/webapps/treebook/app/views/statuses/index.html.erb:5: syntax
error,
On Wed, Oct 3, 2012 at 12:33 PM, Avi aavinash.beh...@gmail.com wrote:
Hello,
What is the best IDE for ROR with JRuby,
Currently I am using Aptana Studio. I am trying to use Rubymine.
Which IDE would give better support to debugging ?
Any Suggestions?
I'm not using an IDE right now, but
On Sep 26, 2012, at 4:58 AM, Avi wrote:
Hello,
I have an interesting requirement. Don't know how to do it.
I have an Admin, which can see a list of users.
All the users will have a button (Login).
The Admin can click on the Login button to to access the user's
account.
If Admin
Maybe this helps:
http://api.rubyonrails.org/classes/Enumerable.html#method-i-group_by
http://railscasts.com/episodes/29-group-by-month
You may do @users.group_by(:id) ... but I'm not sure what you have in your
search methods
Javier
--
You received this message because you are subscribed to
On Sun, Sep 9, 2012 at 9:45 PM, Soichi Ishida li...@ruby-forum.com wrote:
Pradeep Singh wrote in post #1075257:
Item has a belongs_to :user, right?
yes
In any case, what do you get when you print or inspect @result?
if I print it,
#ActiveRecord::Relation:0x0100f24800
is what I
Maybe this help
http://stackoverflow.com/questions/7837350/sprockets-encoding-error-on-js-file-invalid-utf-8-byte-sequence
https://github.com/sstephenson/sprockets/issues/87#issuecomment-1344825
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
I've used this file
https://github.com/juanbrujo/jQuery-Timelinr/blob/master/js/jquery.timelinr-0.9.5.js
I've downloaded it and then in irb did
f = File.read(/path/to/jquery.timelinr-0.9.5.js)
f.valid_encoding?
= true
f.encoding
= #Encoding:UTF-8
maybe there's a typo in the file you are using
Can you post the content of
app/assets/javascripts/application.js:13
and also your Gemfile?
JavierQ
--
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
Rails is smart enough to determine if you want to create or drop a table if
you have done the migration with change
def change
#code here
end
it only depends on how you write the commands
if you do
rake db:migrate
then it will create the db (if the code inside change is about it) and if
you
What I don't get is why the error is in config.ru:5,
because it ends in line 4 with
run StoryTime::Application
maybe the name is Storytime but it depends on how you have done rails new
APPNAME
JavierQ
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
On Tue, Aug 28, 2012 at 4:23 PM, Vinay Sri li...@ruby-forum.com wrote:
Hello,
I am very very new to Ruby on rails. Just joined as an Intern in a
company. They gave me a task. I want to open the PDF in a new window
based on the location id where we currently in. For example, In a
database
On Sat, Aug 4, 2012 at 2:29 PM, aldm alert li...@ruby-forum.com wrote:
But there are some strange issues.
For example, when I add data in json file using AJAX and then open file
in Chrome: localhost:3000/example.json there are no data. I open the
file in firefox and data exists. When i
I've never done something like this before (routing to application
controller), but weeks ago I saw this project in this mail list
https://github.com/devton/whatismyvideoid
and in its routes file he made something like you mentioned.
Maybe you can use it as an example.
Javier Q.
--
You
Hi,
you need something like pusher or maybe an ajax call that executes every 5
seconds (maybe more), depends on the amount of data you are going to
retrieve (because it may crash your app)
Javier Q.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
On Tue, Jul 10, 2012 at 4:42 PM, Scott Ribe scott_r...@elevated-dev.comwrote:
Is there a cleaner way to build the url in the following snippet?
$(function() {
$('#name').change(function() {
$.ajax({
url: %= url_for({action: 'lookup'}) % + ?term= + this.value,
...
On Sun, Jul 8, 2012 at 12:43 PM, Tsvetelina Borisova ts.boriso...@gmail.com
wrote:
Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content
to an email that the user has entered but when I write:
mail(...,:body=Something) I can't send the email. I tried mail() do
On Fri, Jul 6, 2012 at 1:52 PM, sehrguey o. li...@ruby-forum.com wrote:
happy moments are too short...
the search form worked and still works but it has a major flaw - when
the text_field_tag is left blank then all the db raws pop up on hitting
submit button.
How to prevent it?
I tried to
On 16 June 2012 16:32, Karthikeyan A.K mindas...@gmail.com wrote:
OK, if you have a slow internet connection, rails s will take a long time
(as bundler will run and check the internet for nay dependencies). Since
you say almost everything is slow, have you checked if your system is fast?
On Wed, Jun 13, 2012 at 12:36 PM, Loganathan Sellapa
loganathan...@gmail.com wrote:
Hi All,
I want to create an application which needs to provide SOAP services to
multiple applications, I have googled and found that no plugins/gem were
available to create soap web services except the
You should take a look at this
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
execjs-1.4.0/lib/execjs/run
times.rb:51:in `autodetect': Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available runtimes.
(ExecJS::RuntimeUnavailable)
Its always
Correct link
https://github.com/sstephenson/execjs
--
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
On Fri, Jun 8, 2012 at 4:06 PM, renu mehta li...@ruby-forum.com wrote:
Hello,
Which is the best gem available for user sign-up and sign-in where user
can have only one role at a time(i.e sign in as admin or as a data entry
operator)? Also, email cannot be used as user name or to get
On Sun, May 20, 2012 at 10:09 AM, Fernando Almeida
ferna...@fernandoalmeida.net wrote:
You should have a nil value to any @avg, try to use
@avgN = @school.rate_schools.average(:X) || 0
I also suggest to pass all of that logic to the model so after finding the
school:
in controller
@school
On Sat, May 12, 2012 at 7:43 PM, Greg Akins angryg...@gmail.com wrote:
On Sat, May 12, 2012 at 8:08 PM, mike mikeg...@gmail.com wrote:
now when I go to localhost:3000/users/new I first get some kind of
bcrypt-ruby error and then when I reload the page I get a undefined
method
`key?' for
On Tue, May 8, 2012 at 2:10 PM, amvis vgrkrish...@gmail.com wrote:
*view*
%= form_for(@mstype) do |f| %
p %= f.text_field(:Name,:class = span1,:placeholder = x) %
%end%
*Got the error like this*
NoMethodError in Pgmdfntions#pgmdfntion
Showing *pgm.html.erb* where line *#57* raised:
On Mon, Apr 30, 2012 at 10:21 AM, Nike Mike li...@ruby-forum.com wrote:
How to create routes dynamically on rails 3.
Could you give an example of what you're trying to achieve?
Javier Q
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
On Mon, Apr 30, 2012 at 10:52 AM, Marcos Serpa marcosse...@gmail.comwrote:
Hello, guys.
I'm searching for days, but I'm not finding a way to do this. How can I
pass like an argument by 'link_to' the selected value of a selected_tag?
Like this:
%= select_tag 'cities',
On Sat, Apr 28, 2012 at 4:46 AM, Rubyist Rohit li...@ruby-forum.com wrote:
Please see the attached images.
I installed Ruby on a PC running Windows Server 2008 R2. I also
installed Rails and it worked.
Now I am doing the same on another PC with same OS, but it giving error
(see attached
On Tue, Apr 24, 2012 at 10:58 AM, Nicholas Ng nichthinko...@gmail.comwrote:
Hi,I learned ROR about 3 months period, i get to know some of the features
on rails. I'm interested on this web programming technology, and i would
like to spent some of my time to contribute a little to open source.
On Tue, Apr 24, 2012 at 3:17 PM, Javier Quarite jquari...@gmail.com wrote:
If you want, you could send pull request to those gems on their github
repository (or just upload your gists/pieces of code that you consider
useful).
If you want to start a project you should consider learning how
On Tue, Apr 24, 2012 at 3:12 PM, Colin Law clan...@googlemail.com wrote:
On 24 April 2012 10:42, Emanresu craiglba...@gmail.com wrote:
Hi!
I have hired a developer who has recommended Ruby on Rails to use for
the administration part of our website where vendors can login and
manage
On Mon, Apr 23, 2012 at 9:07 PM, Elena T. li...@ruby-forum.com wrote:
Hello, it is my first question
I have some problem with implementation java script in my project
I have a lot of carts and a have a link add_quantity
and I need to increase the quantity on 25 each time
I made it
On Tue, Apr 10, 2012 at 11:16 AM, honey ruby emailtohoneyr...@gmail.comwrote:
hey everyone i want to send mails by scheduling the time
dynamically.lets say in a single table i have all the employee logs
who came at different timings.they are from different locations and
departments. i want to
Take a look at this
http://ruby.railstutorial.org/
but, I recommend you to use ubuntu. Sometimes you may find some troubles in
windows
JavierQ
--
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
On Tue, Mar 27, 2012 at 9:16 PM, Karthikeyan A k li...@ruby-forum.comwrote:
The question is how to create this:
a class=btn data-toggle=modal href=#myModal Launch Modal/a
Using link_to method
%= link_to Launch Modal,#myModal, :data = {:toggle=modal},
:class=btn%
--
You received this
On Mon, Mar 26, 2012 at 11:48 AM, Erwin yves_duf...@mac.com wrote:
[rails 3.2.2]
I perform an ajax call :
...
$.ajax
url: /backoffice/expenses/rate
type: GET
dataType: json
data:
project_id: $('#project_id').val()
code: $(this).val()
On Mon, Mar 26, 2012 at 3:48 PM, Erwin yves_duf...@mac.com wrote:
thanks for your feedback .. maybe so mistake typing this post ,
however the url is fine , as the action is correctly reached ..
if I use :
render :text = @rate
then the result is displayed ..
so it's not an Ajax call issue ,
Have you read rails tutorial?
http://ruby.railstutorial.org/
I'm not sure how it will take you to read this but I guess you'll have an
idea.
You first have to be sure how it will take you to learn it, after that you
can share your idea with someone who can help you :)
Javier Q
--
You
On Thu, Mar 22, 2012 at 1:12 PM, Pito Salas li...@ruby-forum.com wrote:
I've tried a question on StackOverflow and on
http://www.ruby-forum.com/forum/rspec. Are those the best sources for
rspec-in-rails questions, or should I post in the Rails forum itself?
Anyone have an opinion?
I guess
If you are going to use @table in index.html.erb (that is handled by def
index ) you have to add to the index method
def index
@table = Table.new
end
but I don't know why does it works with the symbol and not with the instance
Javier Q.
--
You received this message because you are
On Wed, Mar 21, 2012 at 2:47 PM, Cluter Vipic li...@ruby-forum.com wrote:
Hi Javier,
you are right I just added it anyway when I reloaded the page now I have
another error
undefined method `basket' for #Table id: nil, created_at: nil,
updated_at: nil
I'm not sure what are the fields of
Yes, have you installed it using rails installer?
or something else?
--
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
Is it all made with scaffolds? or what do you have in your controller?
Javier Q.
--
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
Have you tried by searching at
railscast.com?
It have video tutorials, I've seen there prawn
Javier Q.
--
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
Well... in the Pro version it only uses prawn,
Maybe its because of the date (the free cast is from 2009)
Javier
--
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
Have you add mysql gem?
(maybe you have added it but just in case )
Javier
--
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
sorry my bad, I've seen it :)
It seems that its a windows problem
--
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
It happened only one time?
--
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
Yes you have to do
bundle install
have you try by doing
gem install json?
--
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
maybe its a windows problem... or rails installer
--
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
size of what exactly? of a product? If so, I guess you only have to add a
row to your table
--
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
Have you tried data-dismiss.to_sym?
--
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
I know you're searching for a teacher (and you'll pay for the classes), but
have you seen this page?
http://www.railsmentors.org
Maybe it's an option for you :)
Javier Q.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
As far as I know
http://rubygame.org/
or this http://www.libgosu.org/
--
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
you could run a migration
rails g migration drop_users_table
and inside
drop_table :users
But I'm not sure if that's the only problem (according to your log it seems
to be that)
Javier Q.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
If I'm no wrong if you just run the command to generate it again, it will
tell you that a user migration already exists. I'm not sure if that's going
to happen (but I guess because you are trying to generate a devise install
again)
--
You received this message because you are subscribed to the
I forgot, delete the user migration :D
--
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
Could you post the code of the show.html.erb? (because you're saying that
it happens in the show action)
Javier Q.
--
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
On Fri, Mar 2, 2012 at 10:33 AM, reynie...@gmail.com reynie...@gmail.comwrote:
Hi:
I'm starting a simple application to learn Rails and Ruby of course. I
come from PHP and frameworks like Symfony, CakePHP and CodeIgniter and some
of them have a task to create DB models from existent database
When you generate for example
rails generate model Projects name:string
it will generate a table
id name created_at updated_at
and as you see I named it PROJECTS but rails is smart enough to change it
into PROJECT =)
You should give this tutorial a try
http://ruby.railstutorial.org/
and
Codeschool.com?
It also has a free basic rails course
Javier Q.
--
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
On Mon, Feb 27, 2012 at 3:43 PM, Vell lovell.mcilw...@gmail.com wrote:
Hello all,
I'm trying to write a jquery function where I am posting some data from a
form. I am wondering is there a way to select the particular param that I
want to use when I submit the data to $.ajax(). I don't
On Mon, Feb 27, 2012 at 4:52 PM, Vell lovell.mcilw...@gmail.com wrote:
Thanks for the quick response. That does give me a little more clarity
but I guess my question was how do I define my variable with a value
that is in params? When I do alert($(#params)) I get a response of
object Object.
On Mon, Feb 27, 2012 at 5:04 PM, Rodrigo Ruiz rodrigo.ru...@gmail.comwrote:
Hi, does anyone know how to compare to arrays not considering their order?
For example:
if I compare [1, 4, 2] with [4, 1, 2], this should return true.
Thanks in advance.
You can try this
[1,4,2].map{ |a|
On Thu, Feb 23, 2012 at 5:44 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
Hello Paul, I made what you say:
main.css.erb
body {background: url( %= asset_path images/bg.jpg % ) fixed
no-repeat; width:100%; height:100%; -webkit-background-size: cover;
-moz-background-size:
Have you tried in the beginning of the file
# encoding: UTF-8
It works for me
Javier Q.
--
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
On Wed, Feb 22, 2012 at 2:02 PM, Roger Patrick li...@ruby-forum.com wrote:
Can anyone help me?
I have a problem that when I click on the search button I get the
following error message:
ActionView::MissingTemplate in Searches#show
Showing C:/finalproject/app/views/searches/show.html.erb
On Wed, Feb 22, 2012 at 2:15 PM, Roger Patrick li...@ruby-forum.com wrote:
class SearchesController ApplicationController
def new
@search = Search.new
end
def create
@search = Search.new(params[:search])
if @search.save
redirect_to @search, :notice = Successfully
On Wed, Feb 22, 2012 at 4:31 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
I put main.css.erb, but continuing the same problem.
Thanks
So none of the styles are working? (with the file.css)
actually you don't have to put .css.erb, if you want you can put css.scss
Javier Q.
--
On Wed, Feb 22, 2012 at 4:42 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
I change now to main.css.scss, and I reload my page and this errors
show:
Alpha channel 70 must be between 0 and 1 inclusive for `rgba'
(in
Have you checked config/devise.rb?
You have to write the email, or you should check this
https://github.com/plataformatec/devise/wiki/How-To:-Mass-password-reset-and-email-notification
Javier Q.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
On Thu, Feb 23, 2012 at 12:58 AM, Soichi Ishida li...@ruby-forum.comwrote:
You have to write the email, or you should check this
I have put
config.mailer_sender = no-re...@empty-lightning-1693.herokuapp.com
in config/initializers/devise.rb
Is this enough?
soichi
To be honest
On Mon, Feb 20, 2012 at 2:09 PM, Christopher Jones li...@ruby-forum.comwrote:
Ok so I have been playing around with this search for the past few hours
and have done the following but still no result.
I have the following in my index.html.erb:
% for char in 'A'..'Z' %
%= link_to( #{char},
On Sun, Feb 19, 2012 at 2:11 AM, Don don.leat...@gmail.com wrote:
I have limited screen space for a table that I'm displaying, so I'm
showing a truncated view of a description field:
td%= simple_format car.description.truncate(200, :separator = ' ')
%/td
I need a mouse over or click
1 - 100 of 186 matches
Mail list logo