Dear friends,
I have a method named show_rosterduty in employee controller and and a
view name show_rosterduty.html.erb
in the authorization_rules I already set the name of method along with
other methods of employee, means below the method add_rosterduty.
but it give me the error:
Sorry, you a
Hi all,
How to create API for publishing post to Facebook.
once i create post record it should publish the record into Facebook.
Please help me.
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and
Hi All!
Another problem. I am using Rails 5.0.0.beta3 with a minor javascript
file (115 lines). I have encountered the following problem several
times in the past two days. In both earlier cases, I ended up returning
to the master branch and starting over (there were very few changes in
th
This is what I see when I click on Show Posts link
2016-03-08T01:02:38.242828+00:00 heroku[router]: at=info method=GET
path="/posts" host=damp-dusk-43146.herokuapp.com
request_id=b362a590-741a-4b32-8ba6-ad2c8d916413 fwd="67.244.90.19"
dyno=web.1 connect=0ms service=21ms status=200 bytes=2749
20
If you want to learn Ruby, than learn Ruby. Learning Rails is not the same
as learning Ruby. I suggest anyone who wants to learn Rails learn Ruby
first because that's what Rails is built on. There are numerous options
for learning Ruby, you can try codeacademy, or learnrubythehardway.org -
Just looking at the guide for upgrading an app to rails 5 [1], and
have a question
In section 2.2 it says the ActiveRecord models now inherit from
ApplicationRecord, so when upgrading one should create
application_record.rb containing
class ApplicationRecord < ActiveRecord::Base
self.abstract_
>> Colin
>
> Thanks colin,
>
> I moved the method up in controller but now it gives me the error:
>
> NoMethodError in Employee#add_rosterduty
>
> Showing app/views/employee/add_rosterduty.html.erb where line #14
> raised:
>
> undefined method `roster_duties_path' for #
> Extracted source (around l
> Finally, your controller is much too large and complex. I am not
> going to wade through it trying to refactor it for you, but it is not
> suitable for purpose as it is. Likely large amounts of the code can
> be delegated to models, for example.
>
> Colin
Thanks colin,
I moved the method up i
On 7 March 2016 at 15:40, Hitesh Sancheti wrote:
> http://damp-dusk-43146.herokuapp.com/
> From the top nav bar, the 'Show Post' link takes me back to the home
> page. But I want it to take me to
> https://github.com/hitesh99/ror_blog/blob/master/app/views/posts/allposts.html.erb
>
> Is there anyt
http://damp-dusk-43146.herokuapp.com/
>From the top nav bar, the 'Show Post' link takes me back to the home
page. But I want it to take me to
https://github.com/hitesh99/ror_blog/blob/master/app/views/posts/allposts.html.erb
Is there anything that needs to be defined in routes?
https://github.co
On 7 March 2016 at 12:32, Naveed Alam wrote:
>> If the controller is short then post it here, otherwise put is
>> somewhere like pastebin [1] so we can see it.
>>
>> Also put the results of the log since adding the logger.info line there.
>>
>> Colin
>
>
> I the link http://ansicollege.net/dummy/
> If the controller is short then post it here, otherwise put is
> somewhere like pastebin [1] so we can see it.
>
> Also put the results of the log since adding the logger.info line there.
>
> Colin
I the link http://ansicollege.net/dummy/
there is,
employee controller
employee model
roster_du
On 7 March 2016 at 11:52, Naveed Alam wrote:
>> You have not told us the outcome of your tests from my previous post.
>> If it is definitely not showing the logger.info output then it is not
>> executing that code. This would be consistent with the fact that it
>> does not seem to be querying the
> You have not told us the outcome of your tests from my previous post.
> If it is definitely not showing the logger.info output then it is not
> executing that code. This would be consistent with the fact that it
> does not seem to be querying the database for your Employee.find line.
> You need
On 7 March 2016 at 06:31, Naveed Alam wrote:
>> I suggest concentrating on one error at a time. Fix the other one
>> then move on to the next.
>>
>> Colin
>
> I just wanted to tell you this bcoz may it gives u any idea about the
> error.
You have not told us the outcome of your tests from my pre
15 matches
Mail list logo