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 are
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 expensiv
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 unsub
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" g
On Mon, May 13, 2013 at 2:03 PM, Javier Quarite 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&q
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 rubyonrails-talk+unsubscr...@google
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 I
Tue, Apr 30, 2013 at 3:21 AM, 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 which is the best w
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
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(:inclu
On Sun, Mar 31, 2013 at 1:55 PM, Dmitrij B. 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
undefined method `order'
On Sun, Mar 31, 2013 at 5:17 AM, Dmitrij B. 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 it and then do
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 analyz
On Sun, Feb 17, 2013 at 9:44 AM, Jonathon M. 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 when I run bundle
On Sun, Feb 17, 2013 at 4:25 AM, Jonathon M. 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 my other computer
On Wed, Jan 23, 2013 at 12:18 AM, xscr...@gmail.com wrote:
> 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 http://localhost:3000/assets/bootstrap was not lo
On Wed, Jan 23, 2013 at 12:20 AM, New_to_Rails wrote:
> 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 3.2.1
>
> ruby1.9.
On Sat, Jan 19, 2013 at 6:44 PM, Pierre-Andre M. wrote:
> 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
@my_time = Tim
On Fri, Jan 4, 2013 at 4:19 PM, Dheeraj Kumar wrote:
> 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
> populated) the callba
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 Thu, Jan 3, 2013 at 8:52 AM, Dheeraj Kumar wrote:
> 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 here
https://github.com/ra
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 AM,
On Fri, Dec 28, 2012 at 1:39 PM, Eddy Maue 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 http://railsapps.
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 t
On Wed, Oct 24, 2012 at 3:01 PM, Werner wrote:
> 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 => true%>
>
>
so the nam
On Wed, Oct 10, 2012 at 11:05 AM, roelof 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
> /usr/share
On Mon, Oct 8, 2012 at 9:05 PM, wragen22 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, unexpected
On Wed, Oct 3, 2012 at 12:33 PM, Avi 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 I've heard that Ruby
>
> 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
>
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 t
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
=> #
maybe there's a typo in the file you are using (something
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" g
On Sun, Sep 9, 2012 at 9:45 PM, Soichi Ishida 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,
>
> #
>
> is what I get.
>
>
Try @result.to_yaml to see its attri
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 do
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
On Tue, Aug 28, 2012 at 4:23 PM, Vinay Sri 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 table we have a c
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 Sat, Aug 4, 2012 at 2:29 PM, aldm alert 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 refresh file in Chrom
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 receive
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: Ta
On Tue, Jul 10, 2012 at 4:42 PM, Scott Ribe wrote:
> 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 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
> |format|
>
> format.htm
On Fri, Jul 6, 2012 at 1:52 PM, sehrguey o. 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 substitute
>
>
> On 16 June 2012 16:32, Karthikeyan A.K 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?
>> Any malwa
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 th
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
rubyonrails-talk
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 us
On Fri, Jun 8, 2012 at 4:06 PM, renu mehta 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 forgotten
> password. In
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
On Sat, May 12, 2012 at 7:43 PM, Greg Akins wrote:
> On Sat, May 12, 2012 at 8:08 PM, mike 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 nil:NilClass
> >
>
>
I got (s
On Tue, May 8, 2012 at 2:10 PM, amvis wrote:
> *view*
> <%= form_for(@mstype) do |f| %>
> <%= 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:52 AM, Marcos Serpa wrote:
> 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', options_from_collection_for_select(@
On Mon, Apr 30, 2012 at 10:21 AM, Nike Mike 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.
To post to this gr
On Sat, Apr 28, 2012 at 4:46 AM, Rubyist Rohit 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 images).
>
> Att
On Tue, Apr 24, 2012 at 3:12 PM, Colin Law wrote:
> On 24 April 2012 10:42, Emanresu 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 their inventory and pricing. In the
On Tue, Apr 24, 2012 at 3:17 PM, Javier Quarite 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
On Tue, Apr 24, 2012 at 10:58 AM, Nicholas Ng wrote:
> 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. Can
> anyone here give
On Mon, Apr 23, 2012 at 9:07 PM, Elena T. 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 without ajax but
On Tue, Apr 10, 2012 at 11:16 AM, honey ruby wrote:
> 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 send mails to differen
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 rubyonr
On Tue, Mar 27, 2012 at 9:16 PM, Karthikeyan A k wrote:
> The question is how to create this:
>
> Launch Modal
>
> Using link_to method
>
>
<%= link_to "Launch Modal","#myModal", :data => {:toggle=>"modal"},
:class=>"btn"%>
--
You received this message because you are subscribed to the Google Gr
On Mon, Mar 26, 2012 at 3:48 PM, Erwin 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 , rather somet
On Mon, Mar 26, 2012 at 11:48 AM, Erwin 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()
>
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 received
On Thu, Mar 22, 2012 at 1:12 PM, Pito Salas 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 stackoverflow is
On Wed, Mar 21, 2012 at 2:47 PM, Cluter Vipic 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 # updated_at: nil>
>
>
I'm not sure what are the fields of your Table ... table :D, but according
with
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
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
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
r
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
ruby
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 emai
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 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 unsubscr
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
rubyonrails-talk+unsubscr...@goog
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 g
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
rubyonrails-talk+unsu
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 emai
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
rubyonrails-talk+unsubscr...@googlegroups.co
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
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
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.
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
rubyonrails-talk+unsubscr...@goo
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 Go
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" gro
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 also
On Fri, Mar 2, 2012 at 10:33 AM, reynie...@gmail.com wrote:
> 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 which is my
> ca
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
rubyo
On Mon, Feb 27, 2012 at 5:04 PM, Rodrigo Ruiz wrote:
> 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| [4,1,2].include?(a)
On Mon, Feb 27, 2012 at 4:52 PM, Vell 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. When I do alert($(
On Mon, Feb 27, 2012 at 3:43 PM, Vell 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 believe it makes
> sense to
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 gr
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
On Thu, Feb 23, 2012 at 12:58 AM, Soichi Ishida wrote:
> >
> > 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 I'v
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 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 /home/felipe/rails/Younner/app/assets/stylesheets/main.c
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 2:15 PM, Roger Patrick 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 created searc
On Wed, Feb 22, 2012 at 2:02 PM, Roger Patrick 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 where line #3
On Mon, Feb 20, 2012 at 2:09 PM, Christopher Jones wrote:
> 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 wrote:
>
> I have limited screen space for a table that I'm displaying, so I'm
> showing a truncated view of a description field:
>
> <%= simple_format car.description.truncate(200, :separator => ' ')
> %>
>
> I need a mouse over or click event to generate a
1 - 100 of 186 matches
Mail list logo